is there a feature in power automate to stop a flow when its already run by another user
https://www.youtube.com/watch?v=1oX5DcJrXPs
watch this video we will get some idea to solve the question
Hi @PADUser123 :
You might consider trying this solution:
First step: Get all the running flows in the run history of this flow
Second step: Use Cancel Flow Run action to cancel all running flows
About how to get the run history:
You can use the API to create a custom connector to get the running history of Flow:
https://emea.api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/{environment_name}/flows/{flow_name}/runs
The following are some key steps:
Step1: Add the Activity.Read.All and Flows.Read.All permissions
Step2: Download and import the swagger file for the custom connector. And then Enter Client Id, Client Secret and Resource URL: https://service.flow.microsoft.com/
The Result
Please click this link to read StefanS365's article.
If you are new to creating a custom connector, please watch this video
Best Regards,
Bof
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional