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 Apps / Pass Leaves on Year Ch...
Power Apps
Unanswered

Pass Leaves on Year Change

(0) ShareShare
ReportReport
Posted on by 40

Hello Community,
I have an app called Leave Management System. I have a SharePoint list in which I have all kinds of leaves and their allowed days. There is one column called Standard leaves are there are 20 allowed days for it. I also have a SharePoint list in which the remaining balance of leaves are stored for employees with leave type and employee id. Now the thing I want is that if the employee takes less than 10 Standard leaves in a year, a max of 3 leaves should be passed into the next year balance of standard leaves for that employee and should be available from 1st march of the year i.e, 20+3 =23 standard leaves from 1st of march for that employee
Any help will be appreciated. Thank you!

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @AbubakrWorking 

     

    This should be Power Automate which will run the job around the end of the year which gets all employees' available leave, calculate it, and transfer it to the remaining balances SP list.

     

    Type: Schedule Flow (Power Automate)

    Frequency : Every 12 months

     

    StalinPonnusamy_0-1635877792764.png

     


    Thanks,
    Stalin - Learn To Illuminate

  • AbubakrWorking Profile Picture
    40 on at

    Hello @StalinPonnusamy,

    I don't know how to do it. Can you please guide a bit

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @AbubakrWorking 

     

    Sure, I can help. Please provide your Sharepoint structure (field names and Type) that helps me to build It instead of assuming.


    Thanks,
    Stalin - Learn To Illuminate

  • AbubakrWorking Profile Picture
    40 on at

    Hello @StalinPonnusamy,
    I have a SharePoint list for leaves taken, in which there are dates for leaves taken and there is a column named 'leave days' in which there are total leave days that an employee has requested,  and I have a separate list for carried leaves. Both the lists have employee names and emails and other details. Now the thing I want is that if the employee remaining standard leave balance is 3 or more than 3 left for the current year, the carried leaves passed to the next year for the specific employee should be 3, and if it's less than three then it should be that number. 
    In the new year, the flow should create rows in carried leaves list for every employee with their carried leave balance and the year for which they are available.
    Thanks!

  • AbubakrWorking Profile Picture
    40 on at
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @AbubakrWorking 

     

    I was on vacation and returning today. Please let me know if you still looking solution for this.

     

  • AbubakrWorking Profile Picture
    40 on at

    @StalinPonnusamy  Yes I am still looking for a solution to it

  • AbubakrWorking Profile Picture
    40 on at
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @AbubakrWorking 

     

    I will work on this solution and update you.

     


    Thanks, Stalin (Microsoft MVP)
    Blog - Learn To Illuminate Blog
    YouTube - Learn To Illuminate Videos

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @AbubakrWorking 

     

    Let me clarify a few things.

     

    • SP List "Leave Requested" has no of days the user requested
    • SP List "Carried Leaves" has the number of days that leave carried from the previous year

     

    Where are storing the employee eligibility leave days? For example, if an employee joined the first year may have 12 days, after 2 years that user may have 15 days leave. 

     

    Calculation should be

    (Employee Eligibility Leaves+ Carried Leaves) - Number of days Leaves Requested

    like

    (12 +3 (max carried)) - 5 = 10 days (Will carry only 3 days)

     


    Thanks, Stalin (Microsoft MVP)
    Blog - Learn To Illuminate Blog
    YouTube - Learn To Illuminate Videos

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard