Can I cancel any sent approval using PowerApps or PowerAutomate flows?
As for the cancel approval action, I would appreciate it if it behaves the same way as the cancellation from the PowerAutomate approval page.
Also, I am using a translator for this question. I apologize if the text is difficult to read. Thank you in advance for your response.
Hi @toktokmay ,
Split "Start and Wait for approval action" into two action--"Create an approval"/"Wait for an approval", so that we can get a dynamic content named "Approval ID" which we will use next.
Notice that the dynamic content you should fill in Row ID field outputs from "Create an approval" action. Otherwise the flow may run failed.
After cancelation, the approval card will be like this:
Community Support Team _ Wenjuan Zou
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hello @v-wenjuan-msft
Thank you for your response.
Regarding my question, the "cancel" I am referring to is the one shown in the attached image.
I want to use powerapps or powerautomate to make it behave the same as when I press the cancel button on this image.
Hi @toktokmay ,
There's no such operation called "cancel" an approval even in PowerAutomate approval center. As far as I know there are only 3 options called Approve/Reject/Reassign.
If you don't need outcomes of these approvals anymore and no one will respond to them, you can leave them alone for 30 days. After that they will be expired.
If you don't want outcomes of these approvals (no matter Approve/Reject) make impact to following actions in your approval flows, you can cancel the flow's running according to guidance of this link: Cancel or resubmit flow runs in bulk in Power Automate - Power Automate | Microsoft Learn
Community Support Team _ Wenjuan Zou
If this post helps, then please consider Accept it as the solution to help the other members find it.