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 Balance with Lis...
Power Apps
Answered

Leave Balance with List sharepoint

(0) ShareShare
ReportReport
Posted on by 19

Hi I am currently working in our company the LMS. 

I have a question, what code can I set this two list ( LeaveTypes and Leave Request) 
Leave request has a choices of LeaveType and also my LeaveTypes List has the same column. Is there any possible if Leave Request Leave type trigger the LeaveTypes List to send data and minus the available leave?? 

Thank you! 

I hope you get me in my explanation.

donladski_0-1660111213469.png

donladski_1-1660111237875.png

donladski_2-1660111255616.png

 

 

 

Categories:
I have the same question (0)
  • fratrucc Profile Picture
    86 on at

    @donladski Do you just want to show how many hours are avaible after one user pick the leave type?

    In this scenario, i'll try to work with the "on change" function avaible for a dropdown (where users chose the leave type) or with the "OnCheck" and "OnUnCheck" avaible for checkbox. In this properties i'll put a lookup, filtered with data that the user already wrote,  that change a variable and you can show it in a label.

  • donladski Profile Picture
    19 on at

    Hi I think thats the scenerio I want, 

     

    I want to trigger the sharepoint List I created which is the LeaveType List. Do you have any tutorial? Like youtube or blogs that I can read? I am new in PowerApps no idea about the coding. 

    Please also see my Leave Choices which I used is Leave Request List in sharepoint 

    donladski_1-1660112819334.png

     

  • donladski Profile Picture
    19 on at

    @fratrucc hoping you help me in my scenerio.. I hope you understand what Im saying hehehe im bad in explaining.


    THank you

  • Verified answer
    fratrucc Profile Picture
    86 on at

    Ok, i was trying to figured it out, i normally don't use checkbox.

    fratrucc_0-1660117716834.png

    Checkbox1 - OnCheck

     

    Spoiler (Highlight to read)

    Set(
    varCheckbox,
    ThisItem.Value
    );
    Set(
    varSelected,
    (LookUp(
    results,
    (Title = varCheckbox)
    ))
    )

     

    Set(varCheckbox,ThisItem.Value);Set(varSelected,(LookUp(results,(Title = varCheckbox)))) 


    Checkbox1 - OnUncheck

    Set(varCheckbox, "")

     

    labelShowLeftHours - text

    Text(varSelected.Title &": "& varSelected.'Choice 2'.Value &" hours left")

     

    I get from list A (name Checklist) the option for the checkbox in the gallery.

    List B (name results) is like that

    fratrucc_1-1660117895700.png

    So, this was just an example, hope it helps.

    Francesco

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard