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 / Cancel Power Automate ...
Power Automate
Answered

Cancel Power Automate Running Flows using another flow

(0) ShareShare
ReportReport
Posted on by 17

vineet_tanwar_0-1715080919909.png

I have this type of flow where i am able to retrieve all flows in my environment now i want to cancel all running instance of each flow if there are any running instances.
Please guide how can i achieve this ? 

Categories:
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi ,  @vineet_tanwar 

    According to your description, you want to cancel the running flow in your side.

    This is my test flow , you can refer to :

    vyueyunmsft_0-1715133372960.png

    (1)Apply to each action:

    vyueyunmsft_1-1715133491435.png

    https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/Your environment ID/flows/Flow ID/runs?api-version=2016-11-01&$filter=Status eq 'running'

     

    items('Apply_to_each')?['name']
    length(outputs('Invoke_an_HTTP_request')?['body']?['value'])
     
    【Note】 You need to add the credential in your invoke an http action  and need to sign in:
    vyueyunmsft_2-1715133577794.png

    Base Source URL:
    https://api.flow.microsoft.com/

    Azure AD Source URI:
    https://service.flow.microsoft.com/

     

    (2)Condition -Yes:

    vyueyunmsft_3-1715133672683.png
    outputs('Invoke_an_HTTP_request')?['body']?['value']
    items('Apply_to_each')?['name']
    items('Apply_to_each_2')?['name']
     
     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

  • vineet_tanwar Profile Picture
    17 on at

    Thanks @v-yueyun-msft . This might work for me. i will try this. Can you please confirm if this will cancel all flow funs even if a flow has multiple instances running ?

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @vineet_tanwar 

    Sure in my thought , it will cancel all the runnings in your flow.

     

    Best Regards,

    Yueyun Zhang

  • vineet_tanwar Profile Picture
    17 on at

    @v-yueyun-msft Thanks.

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
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard