Hello
I have a workflow that waits for a few on change events and executes based on the value of a field. The workflow creates a new queue item based on the value of the field. The only different between the different queue items is the queue its assigned to. so effectively a queue routing workflow based on the value of the field. This all works fine and well except for one problem.
Sometimes in a single queue it will add the item twice or three times. all of them point back to the same record but in the queue it appears multiple times. I suspect that whats happening is that the workflow fires, and then on change occurs again and it fires again before the first one has had a chance to execute on the record. This in turn calls both of them to fire off at in parallel thus creating multiple queue items. Under normal circumstances i understand that if one queue item is created and after the second workflow executes , instead of creating a new queue item it would re parent the queue item to the correct workflow and clean up the extra record. but since they run at the same time i think whats happening is that its adding it to the queue twice.
Does anyone have any suggestions on how to approach this problem. is there a way to limit the workflow to only run one at a time? wait for the first instance to finish and run in order for the same record.
regards
*This post is locked for comments
I have the same question (0)