cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Create an Approval, how to cancel

Create an approval has the ability to cancel, how do you cancel? I can't find any documentation on this.

 

This is my design

 

Create An Approval

 -> Wait for Approval

 -> Execute After Create An Approval expires -> Cancel Wait for Approval (How do you do this)

 

thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User III
Dual Super User III

If you are the one who created the approval navigate to the Sent tab on the Approvals section of the Flow website.  Click on the approval you want to cancel to open it and you will see a cancel button at the bottom.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

7 REPLIES 7
Dual Super User III
Dual Super User III

If you are the one who created the approval navigate to the Sent tab on the Approvals section of the Flow website.  Click on the approval you want to cancel to open it and you will see a cancel button at the bottom.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Dual Super User III
Dual Super User III

@gentouruaisd 

 

You will have to manually go and cancel the approval as @Pstork1 has mentioned.

 

Please Note: Start and Wait for an Approval is not cancellable. You can only cancel approvals created by using the actions Create an Approval (V2), Start and Wait for an Approval (V2). 

 

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!

This is nice to know.  Is it possible to script the cancellation via flow. I came across this: https://veenstra.me.uk/2019/06/13/cancel-your-pending-approvals-in-microsoft-flow/ and looks like it is accessing CDS to do it. Is that possible?

Hi @gentouruaisd 

 

That works indeed! Please see the screenshot below:

Tesah1.png

If there have been any security roles assigned to the entity on CDS (read write delete etc) you might want to check those as well. I teseted this on my end and it deletes the approval (remember it does not cancel it. Just deletes the existence of the approval action)

 

Hope this Helps!

Hey @yashag2255 ,

 

For the sake of it, I think it's worth mentioning that the Common Data Service triggers and actions are only available in the Premium Microsoft Flow Plan. Since I have the free version, I can only see the "When a record is selected" trigger available for me to use, which can really only be useful in certain situations.

Microsoft
Microsoft

Please note that writing or modifying approvals data in CDS is not supported. Doing so can result in the following invalid configurations or unexpected/undocumented behavior.

 

Please avoid using the CDS connector to update/delete approvals data, as it can break your system.

 

You can use the CDS connector with Approvals entity to:

- Trigger on creation or completion of approvals using the "When an entity is created, modified, or deleted" trigger.

- Monitor approvals that have not been completed (requests for which no corresponding response exists) using the "List records" action.

- Build a PowerApp that shows approvals assigned to specific users or the app user using the "List records" action.

@gentouruaisd @Y_R 

I have created a custom connector for this. If you want to know how it works, please check this video:

 

YT Thumbnails (1).png







Did I answer your question? Mark my post as a solution!


Proud to be a Flownaut!






Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (12,993)