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

Manager's Manager

Hi everyone. Hoping someone can help me figure out how to find someone's 2nd level manager. 

 

In my form, I'm choosing someone in a people picker. In this case, it's Cheryl. See AgentNamePerson card. 

I've used the following code to get her manager in the TM Name card: Office365Users.ManagerV2(DataCardValue1.Selected.Email).displayName. It works as you can see "Cara" in the TM Name card. 

 

I can't figure out what code to use in the SM Name card to get Cara's manager. See attached pic. 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @smartin ,

 

What is the items property of your person picker combobox? What is the data source of this form?If your data source is SP list and the specialist name is person column, please just set SM Name card value Defaults property: 

 

Office365Users.ManagerV2(Office365Users.ManagerV2(ComboBox1.Selected.Email).mail).displayName

 

Snipaste_2019-11-08_18-05-22.png

Best regards,

Sik

If my post is helpful for you, please click on “Accept as Solution” to help other members find it more quickly.

View solution in original post

6 REPLIES 6
Highlighted
Frequent Visitor

I've done something similar where I was trying to get my Manager's Manager's email address. Would something like this work for you?

 

Office365Users.Manager(Office365Users.Manager(Office365Users.MyProfile().Mail).Mail).Mail

Highlighted

Thanks for the reply but it doesn't work. 😞

 

What I need is the manager of the manger for the person who is picked in the people picker. Not the user using form. 

 

Highlighted

You could probably still make it work if you modified the inner most Office365 connector. What if you changed what it to something more like 

 

Office365Users.Manager(Office365Users.Manager(Office365Users.SearchUser({searchTerm:*Name of your dropdown*.Text).Mail).Mail).Mail

Highlighted
Community Support
Community Support

Hi @smartin ,

 

What is the items property of your person picker combobox? What is the data source of this form?If your data source is SP list and the specialist name is person column, please just set SM Name card value Defaults property: 

 

Office365Users.ManagerV2(Office365Users.ManagerV2(ComboBox1.Selected.Email).mail).displayName

 

Snipaste_2019-11-08_18-05-22.png

Best regards,

Sik

If my post is helpful for you, please click on “Accept as Solution” to help other members find it more quickly.

View solution in original post

Highlighted

Hi @smartin ,

 

Had your issue been fixed?

If you are still working with it, please feel free to post back, we will help you.

 

Best regards,

Sik

Highlighted

This worked brilliantly! Thank you!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (4,330)