hello community
Actually I am tring to create a workflow when a Stage change in the BPF in order to calculate a duration per stage
The issue is that when I change a stage the workflow(a background workflow) is executed twice ==> in consequence
I got 2 records created in my new entity (stage duration ) per stage per opportunity
This is my workflow :
This the system task the workflow is executed twice
Consequence 2 records created in the same time
Anyone had already faced the same issue ? Please let me know
PS: I work on dynamics crm 2015
*This post is locked for comments
Hi,
Please check the condition properly in which your workflow is triggering and check what action you are doing on stage change like save , update under stage change operation whether its JS/ plugin/workflow itself . You can not control running workflow twice by putting additional validation , but you can skip your code where you are doing additional action by which workflow triggering twice.
So I believe you can do this , as you are aware of the functionality where you are doing what.
Hi,
If you are using separate date field to capture the duration, then it will resolve, if you check the field value is null then only update. Because if it is already filled with your 1st update then it will stop the workflow in the second execute.
THANKS a lot Sreevalli
That's true, I had a save() in javascript that's caused the double executing of my workflow
But what do you mean by : 'Make sure of having check condition on date before updating' which kind of check in condition ?
Hi,
you must be having any other trigger on stage/all fields update. check it in plugin registration tool.
Make sure of having check condition on date before updating.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6