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 / leave request template...
Power Apps
Unanswered

leave request template, how to update balance table?

(0) ShareShare
ReportReport
Posted on by 6

Hello There, I am trying to customize leave request template. So far I've succeeded in using SharePoint as external data source and created a flow for approvals that update the leave table my question is how can i update the balance table if leave is approved?

Categories:
  • Rahber Profile Picture
    1,935 on at
    So in your approval flow. If the approval is completed you can then go back to your share point item and update the Balance List
  • adminmca Profile Picture
    6 on at

    Hey Rahber, do you mean that i should update the balance table manually from SharePoint? 

    besides my flow only update the leave table. what i want is whenever this table is updated the balance table should as well get updated automatically

     

     

    22.PNG
    11.PNG
  • Rahber Profile Picture
    1,935 on at
    So in your picture 11.png

    if the response is Yes. You should add another action "Update Item: that will go to update the balance table.
  • adminmca Profile Picture
    6 on at

    Thanks for the suggestion, I've did that but the balance  table  did not update. i was thinking if we need to insert a logical statement like if this is updated than update this....!!!

  • Rahber Profile Picture
    1,935 on at
    You might need to check your flow because two different share point lists doesn't work on a logical statement.

    you need a flow to update them. If you can share the flow part maybe we can take a look.
  • adminmca Profile Picture
    6 on at

    Thanks for your consideration here's the complete flow

    c3.PNG
    c1.PNG
    c2.PNG
  • Rahber Profile Picture
    1,935 on at
    In your C3.png.

    Under update item

    add another action of Update item

    And choose the list of balance and then update the row you want to modify.
  • Dniinoi Profile Picture
    2 on at

    Hello adminmca, 

    My problem is similar to yours and I am stuck. 

     

    I have two SharePoint Lists: BalanceLeave and LeavesAppliedByUser. The BalanceLeave holds all the types of leaves ( Annual Leave, Sick Leave, Casual Leave etc.. and the number of days). The LeavesAppliedByuser has  all leaves application made by users. So basically I want to display the balance of leave in a power app screen. 

     

    Below is my formula. 

    Sum(Filter(BalanceLeave,LeaveId=ThisItem.LeaveId),Total_Leave) - Sum(Filter(LeavesAppliedByUsers,LeaveId.Value=ThisItem.LeaveId && RequestedBy.Email=User().Email),TotalDays) & " Days".

    At the moment, this formula doesn't deduct from the total leave days... It brings the total leave as in Balance Leave.

     

    Kindly assist. 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard