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

Notifications

Announcements

Community site session details

Community site session details

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

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:
I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,185 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard