web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Fire workflow only when field values change?

(0) ShareShare
ReportReport
Posted on by 12,163

Is it possible to write a workflow that fires only when a field value changes from one to another? e.g. changes from ValueA to ValueB, or #NULL to ValueB, or ValueC to ValueB. This would essentially cause the workflow to only fire once in its lifetime, assuming that it is a one-way change.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    Hi,

    you can't put a condition to check before the workflow is triggered, only after the workflow is triggered.

    So your workflow will run every time the selected field is changed.

    Because you want to check for the previous value, you need to create a custom field that will hold the previous field information, in this way you can use a check condition inside the workflow.

  • Joe Woltering Profile Picture
    12,163 on at

    Ah, so you would do something like "IF FieldB is NOT EQUAL to CUSTOMFIELD"??

  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    Yes, assuming you have Field1 with possible values ValueA, ValueB, ValueC.

    First you create a new field called PreviousField1, when you save the record first time you will set the value the same as Field1 (for example ValueA)

    When you change the value inside Field1 the workflow is triggered and the condition will be:

    IF PreviousField1 EQUALS ValueA AND Field1 EQUALS ValueB THEN

    or

    IF PreviousField1 EQUALS ValueC AND Field1 EQUALS ValueB THEN

  • Suggested answer
    JimmyJama Profile Picture
    on at

    No. You can have the workflow fire on a field change but it would have to check the value and either continue or cancel.

    The other option is to use JavaScript to fire the workflow.

  • Suggested answer
    Correna Sergent Profile Picture
    on at

    With the new real time workflows you have the option to check a value BEFORE the workflow runs.  This helped me to only trigger when a record started out as a particular value.

  • Krist Profile Picture
    120 on at

    Can you explain how to check a field value when running real time - 

  • Suggested answer
    Community Member Profile Picture
    on at

    We can fire a workflow on change of field value by selecting the option on the screenshot below. This will allow you to select one or multiple fields on change of which to fire the workflow. Also you can select the before and after option, i.e. if you want to trigger the WF before the field value changes or after the change / update is completed. 

    321246.Capture.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans