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

How user can cancel power-automate approval task when if trigger on item modified

Hi All,

I have created a power-automate approval flow which trigger on file modified and created.

As a user i need to have ability to cancel the flow. currently it is using service account so end user will not have option to cancel the flow.

Any suggestion 

i tried below link seems like it not recommended by Microsoft 

https://sharepains.com/2019/06/13/cancel-your-pending-approvals-in-microsoft-flow/ 

1 ACCEPTED SOLUTION

Accepted Solutions
eliotcole
Impactful Individual
Impactful Individual

Yes, but you can pass approval and / or cancellation messages through email and even teams (with work).

 

However I think what @JohnAageAnderse was suggesting, @ankit2823 , was that you create a separate approval within the context of their modification.

 

So, if I modify an item, then it will not only fire the normal approval to whomever you require, but also a separate approval using the user data that you take from the 'modified' trigger. That will then send ME an approval which basically amounts to asking me "do you want to cancel this?"

 

That can then (you can work out the logic 😉 ...) go back in to the flow, and if the main approver still hasn't responded, then the flow is cancelled because the user had second thoughts.

 

Does any of that make sense?

View solution in original post

3 REPLIES 3
JohnAageAnderse
Memorable Member
Memorable Member

Hello @ankit2823 

 

Use the Start and wait for an approval with Approval type = Custom Responses ...

Then add the needed response options and one for Cancel.

This will allow your flow to react when the user chooses the Cancel option 🙂 See example below.

Flow.Approval that can be cancelled.png

Kind regards, John

Hi 

 

Thanks for your reply, i am trying to give user flexibility to cancel a flow which he/she initiated on item modified.

As user can't use cancel button  option from flow portal because flow is initiated my service account on item modified.

 

 

111.png

 
 

 

eliotcole
Impactful Individual
Impactful Individual

Yes, but you can pass approval and / or cancellation messages through email and even teams (with work).

 

However I think what @JohnAageAnderse was suggesting, @ankit2823 , was that you create a separate approval within the context of their modification.

 

So, if I modify an item, then it will not only fire the normal approval to whomever you require, but also a separate approval using the user data that you take from the 'modified' trigger. That will then send ME an approval which basically amounts to asking me "do you want to cancel this?"

 

That can then (you can work out the logic 😉 ...) go back in to the flow, and if the main approver still hasn't responded, then the flow is cancelled because the user had second thoughts.

 

Does any of that make sense?

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,078)