Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Answered

Records Field Change

Posted on by 90

Do workflows fire if you select more than one field in ' Start when - Records Field Change ' but only one field actually changes?

Or do both fields have to change for the workflow to start?

  • gdas Profile Picture
    gdas 50,083 on at
    RE: Records Field Change

    If you are updating same fields after create the record then its expected that workflow will trigger twice .

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Records Field Change

    Hi Goutam, thank you for your response. That is what I would exspect too. However I have two cases, where a new record with the fields involved (and hence fullfill both conditions!), actually make the workflow fire twice.

  • Suggested answer
    gdas Profile Picture
    gdas 50,083 on at
    RE: Records Field Change

    No , both are different concept when you checked " Record is Created" which means post operation of every record creation will be fire workflow.

    "Record field changes " which means when you update any fields of the created record /existing record mentioned on the selected fields list .

    So even if you select both the condition in a  workflow , it's should not trigger twice .

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Records Field Change

    What then, if in addition to trigger on "Record fields changes" the workflow is set to fire on "Record is Created". In this case the workflow is fired twice in case the record is created and the fields involved are having data. How can you avoid that?

  • Suggested answer
    gdas Profile Picture
    gdas 50,083 on at
    RE: Records Field Change

    Hi ,

    Workflow is a process and you can say it is a piece of code/function/method which will execute based on some event defined (Create , Field Change etc ) in the workflow definition. No matter how many fields on change you defined inside a single workflow .

    Workflow will always execute once by default and its by design.

    Hope this helps .

  • Verified answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: Records Field Change

    Nope, the workflow will fire only once. it is per transaction.

    Assume that you have set the workflow to trigger on change on fields A, B, C.

    Update 1: Field A changes => Workflow triggered.

    Update 2: Fields A, B changes => Workflow triggered (only once!)

    Update 3: Fields A, B, C changes => Workflow triggered (only once!)

    Update 4: Fields D, E changes => Workflow NOT triggered

    Pls mark the answer as verified if it helped you.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans