web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Prevent flow from runn...
Power Automate
Answered

Prevent flow from running concurrently with same sharepoint ID

(0) ShareShare
ReportReport
Posted on by 173

I have a flow that is triggered from a button in PowerApps. No problem. Everything works fine. Several differeret useres running the same flow concurrently... No problem, as long as the ID in the SharePoint list is unique. 

 

The flow takes 2½ minutes to complete.  Now at then it happens that the user clicks the button again, which will make both flows fail. 

 

I want to keep concurrent control off, but prevent the flow from running simultaneously with the same SharePoint ID. 

 

Is this possible? and what do i write in the trigger conditions? 

 

UI1222_0-1632342210138.png

 

Categories:
  • Verified answer
    tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @UI1222 ,

    with Power Automate the flows are not aware of each other, so to give it information that the flow did already run on a specific SharePoint item you must keep the information in the item. I'd add a choice or checkbox field to the SharePoint list, e.g. 'FlowDidRun' and update it in the first action when a flow is started.

    You can then build a trigger condition to trigger the flow only if the choice/checkbox has the default value (not the updated one).

    The easiest way to create the trigger condition would then be with the 'Filter array' action, e.g.

    image.png

  • Michael Seerup Profile Picture
    173 on at

    That it a great solution, i didn't think of that. 

     

    Cheers

  • slx Profile Picture
    108 on at

    Hi

    I have question if you could help in following scenario:
    there are 10 concurrent power automate flows and each instance could last 1-10 sec
    I want to update a flag after all of the instances execution are completed.
    what is most elegant way to do it ?

    thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard