cancel
Showing results for 
Search instead for 
Did you mean: 

Ability to Cancel a Running Approval Flow.

Scenario: When a user Publishes a document, the Approval Flow is kicked off. While waiting for approval/rejection the user makes another edit and republishes the document, triggering another approval flow. I would like to cancel the previous running flow. 

 

- Looking for an API call to cancel a cancellable approval. The current option is to manually cancel a flow in the run history. 

Status: New
Comments
fbn10040
Regular Visitor

surprised this got 6 votes so far. Really needed feature!

fbn10040
Regular Visitor

If Update a record using CDS is not supported by Microsoft, can you give us a way to cancel a running workflow? There are scenarios that there are parallel branches in the flow for different approver roles. Once one branch approval action is completed via a REJECT, then the other parallel branches still exists. So when the user visits a future approval and they see the "My Flows" page within Power Automate, they see a lot of tasks pending action. This misleads the user and has to contact help desk in our company. If there was an action to cancel workflow would be great so I can log every approval (after calling "Create an approval") in a SharePoint list and then when a reject occurs in one of the branch, I can call the "CANCEL APPROVAL" action, provide the Approval ID and DONE. Now users will not see these leftovers in their flows page. 

fbn10040
Regular Visitor

By the way, I have contacted Microsoft support (via Premier Support) and only suggestion was to use UI flow (though not tested by them). In other words, no active workaround YET. 

PowerfulPoint
Advocate I

@fbn10040 you can try to follow this as a workaround. However, it requests a Premium license for the Azure HTTP request. If you do not have Premium license, you have to wait for MS update.

Cam
Kudo Collector
Kudo Collector