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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help - Creating a Holi...
Power Automate
Answered

Help - Creating a Holiday Approval System

(0) ShareShare
ReportReport
Posted on by 10

Hi All

 

I love using Power Automate, I consider myself still fairly novice using it. However I have built up a good understanding of it now.

I been tasked with creating an ambitious Holiday approval system using a combination of the below.

  • SharePoint 
  • Approvals 
  • Outlook

I have found it easy to create the basic design of the system which I will outline below.

 

  • When an Item is created in HolidayApprovals SharePoint List
  • Start and Wait for an Approval
  • Condition
  • Outcome = Approve
  •  Send Email confirming Approval        
  • Get-Items from EnployeeInformation SharePoint List
  • Find Item Employee1 > Get Value RemainingHoliday
  • Preform Subtraction on Value NumberOfDays against RemainingHoliday value to create NewRemainingHoliday Value
  • Update-Item within EnployeeInformation SharePoint List Item Employee1 with NewRemainingHoliday Value
  • Update HolidayRequest SharePoint List Item to show status as Approved

 

The issue I am having is that I need to find out if it is possible to obtain a value from an item in another SharePoint list.

To be able to use that value to preform a subtraction calculation on the NumberOfDays Value.

Then to update the same item with the new value becoming the RemainingHoliday Value.

 

I hope this has been explained competently enough and I am happy to answer further questions.

Categories:
I have the same question (0)
  • KaneNG Profile Picture
    10 on at

    Hi

    Is anyone able to help me with this?

    Have I posted this in the correct section?

  • Verified answer
    Mister_Shaik Profile Picture
    1,008 on at

    Hi @KaneNG ,

     

    You can accomplish this like below,

     

    1. Create a new flow with trigger "When an item is created" and set it to the "HolidayApprovals" list
      1. Trigger.PNG
    2. Get the Employee record from "EmployeeInformation" list using OData filter query
      1.2 Get Items.PNG
    3. Parse and collect the RemainingDays and Item ID of the record
      Remaining Holidays - first(outputs('Get_items')?['body/value'])?['RemainingHolidays']
      Item ID - first(outputs('Get_items')?['body/value'])?['ID']
      2. Collect remainnig days and ID of item.PNG
    4. Now, if the NumberOfDays requested is greater than RemainingDays or Employee record not found - Terminate the flow and update status as rejected
      GetItems length - length(outputs('Get_items')?['body/value'])

      3. Terminate if Number of days requested is greater than remaining days or if employee not found in employee informatio list.PNG
    5. Now Send out an approval to Manager/HR with Employee information
      4. Send for approval.PNG
    6. Based on result of approval, update status of HolidaysApproval item to "Approved/Rejected" and update the Remaining days of EmployeeInformation
      Subtraction - sub(outputs('RemainingHolidays'),triggerOutputs()?['body/NumberOfDays'])

      5. Send approval result.PNG

     

    Hope you find this helpful!

     

    Kind Regards,

    Shaik Sha
    ________________________________________________________________________

    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard