Can We Synchronize Flow Execution? (i.e. one execution at a time)
Hello all.
I am facing a challenge with my Saleforce to Jira flow. We have multiple triggers in SFDC managed by different departments, of which all but one are outside my ability to modify. As such, I am left to only manage my triggers and flows.
My problem seems to be that my Salesforce create trigger may be colliding with another create trigger. My trigger initiates a "Create Jira Object" flow that has a condition to ensure the object does not exist before the flow executes. So, if two triggers initiate the flow, both flow executions check for the object existence before continuing. A race condition exists where, if both initiated flows check the object creation before either flow actually executes the creation, then two objects are created.
My hope is that there is a way to synchronize flow execution to allow the first flow to "block" other flows from executing until the first flow completes. This will have zero affect on our performance requirements, and hopefully resolve the multiple object creates.
I have considered using the "Skip export field ID" pattern, but the same race condition exists since the value may be TRUE for both flows upon instantiation.
I can if needed remove my trigger, but that only treats the symptoms. If another department removes their trigger, then my flow won't execute.
Thoughts? Thanks!
Comments
Hi Mike Darretta,
Does this specifically relate to API Management within Celigo? If not, I believe it might be best if I move your post to the Troubleshoot custom flows section for more visibility. Thanks!
Please sign in to leave a comment.