Skip to main content

Notifications

Community site session details

Community site session details

Session Id : gErPIE+MPvuzWBOU0h/FaU
Power Automate - General Discussion
Answered

Cancel a request after it's been approved

Like (0) ShareShare
ReportReport
Posted on 10 May 2022 01:33:01 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:
  • Verified answer
    RobElliott Profile Picture
    10,134 Super User 2025 Season 1 on 11 May 2022 at 11:48:45
    Re: Cancel a request after it's been approved

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

     

  • syhrh Profile Picture
    997 Super User 2024 Season 1 on 11 May 2022 at 02:10:54
    Re: Cancel a request after it's been approved

    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.

  • vivekpande18 Profile Picture
    894 Super User 2024 Season 1 on 10 May 2022 at 14:03:52
    Re: Cancel a request after it's been approved

    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 10 May 2022 at 06:48:35
    Re: Cancel a request after it's been approved

    @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 10 May 2022 at 06:30:57
    Re: Cancel a request after it's been approved

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
David_MA Profile Picture

David_MA 8 Super User 2025 Season 1

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 7 Super User 2025 Season 1

Overall leaderboard
Loading started