cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rodieremix
Level: Powered On

Is it possible to wait for a flow run to complete before the next run starts?

Hi,

 

I have a couple of Flows that are triggered when Salesforce records are updated. These records are updated two different ways. Either they are updated manually by a user throughout the day or they are updated in batches in an import process that runs outside of Flow several times a day. When they are updated manually there is no issue with the Flow. However, when the batch process runs, several of the runs error out due to a 429/"rate limit is exceeded" error. I understand why this is happening but I'm trying to come up with a way to prevent it. I need to collect the information from the batch imports so I can't just disregard them. Ideally, I'd like to have Flow wait to start the next run that was triggered until the last run completes. Is there a way to accomplish this? Or any other potential solutions to my problem? I am open to ideas. Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Is it possible to wait for a flow run to complete before the next run starts?

If it is a single flow that is handling all of your updates you may be able to make use of the concurrency control on the trigger. Within the settings for the Trigger step of the Flow it is possible to force the process to wait until the previous run has completed by reducing the concurrency control Degree of Parallelism to 1.

 

I have had this successfully working recently with the Microsoft Forms trigger. If multiple Form responses are submitted at the same time, they will sit in a waiting state within Flow until they can be processed. I havent been able to confirm if this is possible with the Salesforce trigger as I dont have an available connection to set it up.

 

chrome_2018-11-30_15-52-58.png

 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Is it possible to wait for a flow run to complete before the next run starts?

Hi @rodieremix,

 

It seems that Flow does not support such a feature currently.

It can be considered that when a Flow is executed, it can generate a delivery message as a trigger condition for the next Flow execution. But all of your Flow's triggers are the same, so there is no good way to achieve your needs.

If you want to function that you mentioned to be supported in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
rodieremix
Level: Powered On

Re: Is it possible to wait for a flow run to complete before the next run starts?

Thank you for the information @v-bacao-msft!

Super User
Super User

Re: Is it possible to wait for a flow run to complete before the next run starts?

If it is a single flow that is handling all of your updates you may be able to make use of the concurrency control on the trigger. Within the settings for the Trigger step of the Flow it is possible to force the process to wait until the previous run has completed by reducing the concurrency control Degree of Parallelism to 1.

 

I have had this successfully working recently with the Microsoft Forms trigger. If multiple Form responses are submitted at the same time, they will sit in a waiting state within Flow until they can be processed. I havent been able to confirm if this is possible with the Salesforce trigger as I dont have an available connection to set it up.

 

chrome_2018-11-30_15-52-58.png

 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


View solution in original post

rodieremix
Level: Powered On

Re: Is it possible to wait for a flow run to complete before the next run starts?

Thank you @LeeHarris! This is exactly what I needed. 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,772)