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 / No HTTP resource was f...
Power Automate
Unanswered

No HTTP resource was found...: How to Cancel Runnning Flow?

(0) ShareShare
ReportReport
Posted on by 264
Hi, guys!

I use this request to get running flows.

https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/{FlowEnvironment}/flow...

and then got the response smth like this

 

"value":[
{
"name": "08584922969917208414059650647CU40",
"id": "/providers/Microsoft.ProcessSimple/environments/{myEnv}/flows/{myflow}/runs/08584922969917208414059650647CU40",
"type": "Microsoft.ProcessSimple/environments/flows/runs",
"properties":{"startTime": "2024-03-01T16:18:13.7811527Z", "status": "Running", "correlation":{"clientTrackingId": "08584922969917208414059650647CU40"…}
},

 

 

So I use 08584922969917208414059650647CU40 as {FlowRunID} to Cancel the process

POST

 

https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/{FlowEnvironment}/flows/{FlowGUID}/triggers/manual/histories/{FlowRunID}/cancel?api-version=2016-11-01

 

 

but I got an Error: 

 

{message": "No HTTP resource was found that matches the request URI 'https://10.0.8.18:20101/providers/Microsoft.ProcessSimple/environmen..'}

 

 

Where did I miss?

 

Categories:
  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Have you tried using the Cancel Flow Run action in Power Automate Management?

    DJ_Jamba_0-1709480675270.png

     

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Awesome! Could you mark as solved if it's all sorted?

  • Max77 Profile Picture
    264 on at

    @DJ_Jamba , Cancel Flow Run works. 

    What conclusions can be drawn?

    What should I fix to complete the task via REST API?

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Why do you need to cancel a flow via REST API when the Power Automate Management action can cancel a flow?

  • Max77 Profile Picture
    264 on at

    @DJ_Jamba , I call Cancel from a separate CRM system.

    1. REST works faster

    2. It is not comfortable to store Flow address in the CRM and then scale CRM (have to store a new address for each client/environment).

    3. If I use flow call - I have to use/store credentials in CRM. I haven't figured out how to use Token to call Flow and have the error

    The request has SAS authentication scheme, 'Bearer' authorization scheme or internal token scheme. Only one scheme should be used.

     

    4. I'm interested how do it)))

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @Max77 
    I have never used the technique you are trying to use, (I use the one I proposed) but after a bit of googling, it seems that in order to use the technique you are trying to use, you first need to register a service (app) in Azure before you can create a custom connector to call the https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/{FlowEnvironment}/flows/{FlowGUID}/runs/{FlowRunID}/cancel?api-version=2016-11-01 endpoint.

    I found a tutorial here

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 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard