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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sample Leave Request
Power Apps
Unanswered

Sample Leave Request

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

 

So i have seen the powerapps Leave Request sample which looks really good.  I'm trying to undesratnd how it works and i figure they best way would be to try and build an app myself.  Completely new to powerapps. 

 

The leave request sample allows you to login as staff or manager and i'm wondering how this works and how it knows who is your manager is for approval.  Also, how to do change managers etc. I have found the data source for the app but as far as i can see there is no table linking staff to managers.

 

Many thanks

I have the same question (0)
  • RBoneck Profile Picture
    415 on at

    This is in the code: 

     

    Office365Users.Manager(MyProfile.Id).Id})

     

    Which basically means it's looking up the current users manager in Office 365. I have to change that for my company because we don't have employees labeled correctly in 365 for it to work based on that, but that's where you would have to change it.

    (NewRequestScreen is where the code is located.)

  • Gangula Profile Picture
    77 on at

    @Boneckrh19 , Can you help me further with this? I can't seem to find this code anywhere.

  • RBoneck Profile Picture
    415 on at

    Are you using the version of this template that was available in 2018? They have since updated the template and I found it to be a much better version to modify and use. I highly recommend using this updated version.

     

    If you are using the old one, the code is on the NewRequestScreen. Beyond that, I no longer have a copy of the old version and wouldn't be able to remember where specifically the code is. If you would like to screenshot what you are looking at, perhaps I could be of more help.

     

    What exactly is it you are trying to do?
    For my company (since we are not using the manager field in Office365) we have the employees just pick their manager from a dropdown list that comes from the systems User entity (table) in the CDS. You could also create a CDS entity to hold a table of employees to managers, or even better you could create it as a collection (table) within the apps OnStart.

  • Gangula Profile Picture
    77 on at

    Thank you @Boneckrh19 , I found the code. I will check out how to customize it specific to my need.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard