cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
yoshihirok
Level 10

How to cancel the approval request?

I want to know how to cancel the approval request after a day,

for send the approval request to other person.

 

My scenario:

1 step, Send the approval request to a manager, and wait a day.

2 step, Send the approval request to other manager when no-response by first manager,

and cancel the approval request of 1 step.

8 REPLIES 8
swhitmore
Level: Powered On

Re: How to cancel the approval request?

Sounds like something that could be solved with a Do-Until action

yoshihirok
Level 10

Re: How to cancel the approval request?

Hi, @swhitmore 

 

I hope to cacel the send approval request,

so, I cannot solve the Do-Until.

 

If my flow send the request repleat, noisy.

swhitmore
Level: Powered On

Re: How to cancel the approval request?

Sorry, I was not suggesting you put the entire approval flow inside a Do-Until, only the response condition @body('Start_an_approval')?['response']. Then set your timeout to 1 day.

Community Support Team
Community Support Team

Re: How to cancel the approval request?

Hi @yoshihirok ,

 

It is not possible to cancel a pending approval from flow.

There is a similar request on Flow Ideas Forum, please vote the idea at here:

https://powerusers.microsoft.com/t5/Flow-Ideas/Create-a-way-to-remove-approval-cards-in-pending-send...

 

By the way, please try if the following workaround will work for you.

Set the Timeout duration of the approval action as PT1D under Settings of the first approval action. Then configure Run after as “has timed out” for another approval action to send the request to another person.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
levijohnson
Level: Powered On

Re: How to cancel the approval request?

I'm currently doing exactly that with a timeout. I'm frustrated that when an approval action times out, it doesn't dissappear from the approvals part of flow. This makes zero sense. I have to go in and approve or deny all of them for them to go away. 

I either need automatic reminders for approvals, or for this feature to be corrected. If an approval times out, it should disappear from the flow approvals for the user. 

ericramos2017
Level: Powered On

Re: How to cancel the approval request?

There is a way to cancel an approval request but it requires that the flow maker to have certain environment permissions.  Approval requests are stored in the common data service in the Approvals entity. If you have write access to the entity then you can change the status of the Approval to inactive after it timesout. This will remove the request from thier queue.  

mj2
Level: Powered On

Re: How to cancel the approval request?

@ericramos2017 

Could you please write how to access CDS and cancel approval ? this would be very helpful. Or post some article/howto where this approach is documented.

 

thank a lot

ericramos2017
Level: Powered On

Re: How to cancel the approval request?

You access the CDS by using the Common Data Service List records connector.  You enter the environment name and the Approval entity into the connector. This will give you all the approval records that are in the environment. Next you filter the returned array for the specific approval you are looking for. Then by using the CDS update record connector, use the iteminternalid as the record identifier and update the Status Reason Value to expired. 

 

Please note, you must have sufficient privileges to update the CDS record.   

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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!

Top Kudoed Authors (Last 30 Days)
Users online (5,423)