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

How to stop MS Flow with approval while the approval is active?

Hi,

 

i am executing a flow "when a item is created" in a sharepoint list, that flow sends an approval and wait for the response. The problem appears when i delete the item, in this moment i am waiting for the time out approval for terminate the flow, but the time out approval is 24 hours ... so it's to much time to wait, because the approver is going to see the approval waiting to be answering, but the item was deleted.

 

i wait your answer.

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User
Dual Super User

Re: How to stop MS Flow with approval while the approval is active?

Normally, the way to fix this would be to have another Flow that fires when the document is deleted and then use that to find the related Approval in CDS and delete the Approval.  But there is an issue with the File Deleted trigger right now that it won't provide you with any information about the file that was deleted for security reasons.  So there is no way to lookup the Approval and remove it.  At this point your only choice is to wait for the approval to timeout.



-------------------------------------------------------------------------
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

2 REPLIES 2
Super User
Super User

Re: How to stop MS Flow with approval while the approval is active?

@Hi @yanina ,

 

Please see below posts. It says if you have access to Common Data Service database you should be able to acheive this. So you might setup another flow trigger when a list item is deleted then look the CDS and try to set the status.

 

https://powerusers.microsoft.com/t5/General-Flow-Discussion/How-to-cancel-the-approval-request/td-p/...

 

https://veenstra.me.uk/2019/06/13/cancel-your-pending-approvals-in-microsoft-flow/

 

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

 

 



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Highlighted
Dual Super User
Dual Super User

Re: How to stop MS Flow with approval while the approval is active?

Normally, the way to fix this would be to have another Flow that fires when the document is deleted and then use that to find the related Approval in CDS and delete the Approval.  But there is an issue with the File Deleted trigger right now that it won't provide you with any information about the file that was deleted for security reasons.  So there is no way to lookup the Approval and remove it.  At this point your only choice is to wait for the approval to timeout.



-------------------------------------------------------------------------
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

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!

Top Solution Authors
Top Kudoed Authors
Users online (5,470)