Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Need help_how to get User direct Manager or reporting manager and reporting manager manager?

Like (0) ShareShare
ReportReport
Posted on 24 Mar 2023 05:58:00 by 1,994

hi

 

i am trying to create a form , can I know how to auto populate the user's direct manger and it's manager direct officer?

 

I trying using 

Office365Users.ManagerV2(User().Email).mail - it not working

 

Needs the User

RO (reporting officer)

first name, last name, email, department and title all the field are single line in SP list.

 

then RO direct manager call it AO

first name, last name, email, department and title all the field are single line in SP list.

 

kindly help to advise on this thank you

 

 

error show

error manager.PNG

 

i try this error too  - DataCardValue5 is the User name who log to the screen.
If(
ApplicantForm.Mode = FormMode.New,
{
FirstName(RO): IfError(Office365Users.DirectReportsV2(DataCardValue5.Selected.Email), blank(), Office365Users.DirectReportsV2(DataCardValue5.Selected.Email).displayName
Claims: "i:0#.f|membership|"& Lower(varRO.email)
},
Parent.Default
)

 

Manager RO same field for RO Manager (AO)

bbsin_0-1679637422166.png

 

 

  • bbsin Profile Picture
    1,994 on 26 Mar 2023 at 05:06:40
    Re: Need help_how to get User direct Manager or reporting manager and reporting manager manager?

    Thanks will check with IT. 

  • iAm_ManCat Profile Picture
    18,206 Most Valuable Professional on 24 Mar 2023 at 08:49:31
    Re: Need help_how to get User direct Manager or reporting manager and reporting manager manager?

    Does the account you are building this app with have a manager? This error indicates that it does not - anyone who uses the app and does not have a manager set on Azure Active Directory will get an error like that as it cannot look it up if it doesn't exist 🙂

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 298 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 169

#3
stampcoin Profile Picture

stampcoin 130

Overall leaderboard
Loading started