cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
uglyCoder
Level: Powered On

Manage flow using API

I am currently working on a wrapper around MS Flows, where I want to manage most of the functionalities using HTTP calls. I saw the documentation regarding API support, where it is stated that you can disable or delete a particular flow.

My use case requires a functionality where I can cancel a particular flow run using an HTTP request. Is this possible? \

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Manage flow using API

Hi @uglyCoder 

 

Currently this is not supported in Flow. Currently flows can be terminated during the run only by the terminate action within the flow or by manually cancelling from the portal. You can only turn the flow off or on externally but again if you try to turn off the flow while it is running, it will turn off after completing that particular run. 

 

If you think it should be added as a functionality, you can create an idea or upvote similar ones here: https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

5 REPLIES 5
Dual Super User
Dual Super User

Re: Manage flow using API

Hi @uglyCoder 

 

Currently this is not supported in Flow. Currently flows can be terminated during the run only by the terminate action within the flow or by manually cancelling from the portal. You can only turn the flow off or on externally but again if you try to turn off the flow while it is running, it will turn off after completing that particular run. 

 

If you think it should be added as a functionality, you can create an idea or upvote similar ones here: https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

uglyCoder
Level: Powered On

Re: Manage flow using API

In that case, can a flow be disabled? Was not able to find a way to do that as well. @yashag2255 

Dual Super User
Dual Super User

Re: Manage flow using API

Hey @uglyCoder 

 

You can do it like this:few.PNG

You have to select the enviroment and the flow in this action. You can see a Turn on flow as an action too if you want to turn on the flow. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

uglyCoder
Level: Powered On

Re: Manage flow using API

Can it be done directly using an HTTP request?

Dual Super User
Dual Super User

Re: Manage flow using API

Hey @uglyCoder 

 

It can be done if the flow is triggered using an HTTP request. So you can create an HTTP request trigger and add the action there. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (4,550)