cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lexicron
Resolver II
Resolver II

How to prevent flow from running multiple instances?

My flow works on a single file on OneDrive and should not be allowed to start another run while it's already running or that poor file is going to get raped by all sorts of changes trying to be done to it.

 

The flow is manually triggered by a button by users.

 

The users are typical users who would click a button multiple times if it looks like nothing has responded within 0.12s. I'd prefer to make my flow more robust than to try to change that kind of user behaviour.

 

Is there a way to make a flow single instance only?

 

(My alternative was to make my flow create a copy of that file and work on the copy instead, while leaving the original file as a template and not touching it. However, because I need to add rows to a table, I need to specific the table name for the fields to show up in the Flow editor, so that I can populate them with the relevant values. I can make Flow create a copy of the file but the Flow editor is unable to pick up on the table name and fields for a file that's only created at run time.)

1 ACCEPTED SOLUTION

Accepted Solutions
Taylor_Becktold
Helper I
Helper I

Hi @Lexicron -

 

You can limit the amount of parallel Flows that are running by utilizing the concurrency controls in the trigger settings:

 

image.png

 

 

This will queue up multiple runs instead of having them run all at once. 

 

Did my reply help? Please give it a thumbs up.
Did my reply answer your question? Please mark it as a solution!
If you liked my response, please consider giving it a thumbs up.

View solution in original post

2 REPLIES 2
Taylor_Becktold
Helper I
Helper I

Hi @Lexicron -

 

You can limit the amount of parallel Flows that are running by utilizing the concurrency controls in the trigger settings:

 

image.png

 

 

This will queue up multiple runs instead of having them run all at once. 

 

Did my reply help? Please give it a thumbs up.
Did my reply answer your question? Please mark it as a solution!
If you liked my response, please consider giving it a thumbs up.

View solution in original post

Perfect!! Thank you so much! 😄

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Top Solution Authors
Users online (2,144)