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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Workflow firing twice

(0) ShareShare
ReportReport
Posted on by

We have a workflow in both 4.0 and 2011 that is currently set to fire when a record for one of our custom entity types is created or when a particular attribute on that record changes.

The above attribute changes when a user clicks a custom button . Javascript changes the attribute value and saves the form. 

The issue appears if a user enters data on the form and clicks the out of the box 'save' icon and immediately also clicks the button to change the attribute.

When this happens the workflow fires twice - first because the save icon was clicked it fires because the record was created and by that time it also recognizes that the attribute value has changed. Since the workflow logic looks for the attribute value to be a certain value (which now it is) it fires a task.

The workflow is firing a second time due to the attribute changing value and like above because it is the correct value another task is fired.

If a user clicks the save icon and waits long enough before clicking the custom button there is no issue. Most users don't use the save icon and only click the button which saves (creates) the record and the workflow fires only once there as well.

This doesn't appear to be a huge issue but how can I explain what is occurring here that causes the workflow in the above scenario to fire twice. 

 

*This post is locked for comments

I have the same question (0)
  • Sumit Bhatnagar 99 Profile Picture
    1,850 on at
    RE: Workflow firing twice

    Hi..

    Could you please paste a screen shot of the workflow here,would be great for me ?  As well as I believe we can add a condition etc.

    thanks.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans