web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cancel a request after...
Power Automate
Answered

Cancel a request after it's been approved

(0) ShareShare
ReportReport
Posted on by 997 Super User 2024 Season 1

Hi, I'm developing a leave request system in Sharepoint and using Power Automate for the approval workflow. I wanna know that if an employee applies for a leave in the SP list and it has been approved, is it possible for the employee to cancel the leave? If it's possible, how can I do that?

Thank you.

 

 

Categories:
I have the same question (0)
  • vivekpande18 Profile Picture
    894 Super User 2024 Season 1 on at

    Hi @syhrh ,

     

    How employee is applying for leave ? (from SharePoint list or custom form)
    When you say cancel the request, what should exactly happen? what set of actions should be executed ?

     

    Thanks,

    Vivek

  • syhrh Profile Picture
    997 Super User 2024 Season 1 on at

    @vivekpande18 As of right now, the employee applying for leave is from SP list because I haven't set the required multi-level approval for the approver. To set the multi-level approval, is it easier to use the custom form? 

    What I mean by cancel the request is that the employee's leave request's status, 'Approved' needs to be changed to 'Cancelled' as per his wish to cancel that request. 

  • vivekpande18 Profile Picture
    894 Super User 2024 Season 1 on at

    Hi @syhrh , 

     

    You can create a flow which runs on selected item. 

    Want to know more about it follow below link. 

    https://youtu.be/8MSGwXazZRM

     

    In that flow you can add your action to change the status from approved to cancel. 

     

    Once you build above workflow, user can go to the list, select the particular item and select the workflow to run, which will cancel the request. 

     

    Thanks, 

    Vivek

     

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • syhrh Profile Picture
    997 Super User 2024 Season 1 on at

    Hi @vivekpande18, thank you for the link given. I've watched it and yes I think it would help in some way but it didn't show how to change the item on the Sharepoint list. To do that must use the update item in Power Automate?

    Thank you.

  • Verified answer
    RobElliott Profile Picture
    10,333 Super User 2025 Season 2 on at

    @syhrh presumably your post here is to find out what the flow looks like after the user has clicked the "Cancel Leave Request"  JSON-formatted button which I showed you yesterday over on the SharePoint tech forum at https://techcommunity.microsoft.com/t5/sharepoint/cancel-a-leave-request-after-it-s-been-approved/m-p/3347981

     

    cancelRequest.png

     

     

    It's a very simple flow that just changes the Status column to Cancelled:

     

    forASelectedItem.png

     

    Once you've saved the flow, copy the ID from the url bar on the main page of the flow and paste it into the actionParams line of the JSON formatting code.

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard