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.
@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
It's a very simple flow that just changes the Status column to Cancelled:
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.
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.
Hi @syhrh ,
You can create a flow which runs on selected item.
Want to know more about it follow below link.
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.
@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.
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
David_MA
8
Super User 2025 Season 1
Michael E. Gernaey
8
Super User 2025 Season 1
ankit_singhal
7
Super User 2025 Season 1