cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HF306
Helper I
Helper I

Leave Request

Error.PNG

Hi everyone,

 

1. As shown on the image above, how do I fix that error?

 

2. I also would like to know how do I set Log In as Manager for specific people such as when button Log In as Manager is clicked and it detect that Person_A@mail.com and  Person_B@mail.com account, access is granted. Else access is restricted.

 

 

Thanks!! 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @HF306 ,

Try this

Set(_selectedAprover,Office365Users.Manager(Office365Users.MyProfile().Id))

If you actually want the manager's name

Set(_selectedAprover,Office365Users.Manager(Office365Users.MyProfile().Id).DisplayName)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @HF306 ,

Try this

Set(_selectedAprover,Office365Users.Manager(Office365Users.MyProfile().Id))

If you actually want the manager's name

Set(_selectedAprover,Office365Users.Manager(Office365Users.MyProfile().Id).DisplayName)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi WarrenBelz,

 

appreciate the help!! ^_^

Thank you @WarrenBelz  for this solution,
I have just downloaded the Leave Request Template and got the same error message, your solution fixed the issue

Kind regards

Claire

 

katlego
Regular Visitor

Set(
_selectedApprover,
Office365Users.Manager(_myProfile.Id)
);
Set(
_selectedApproverPhoto,
If(
Office365Users.UserPhotoMetadata(_selectedApprover.Id).HasPhoto,
Office365Users.UserPhoto(_selectedApprover.Id)
)
)

 

 

I want to set Manager as kat@contoso.com so that other uses within my Tenant can not login as manger.

how do i go about putting in that validation?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,198)