cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
omi18
Post Partisan
Post Partisan

Populate Manager Name

Hello,

 

I have a combo box containing a list of users. And I'm trying to get the manager's email for the selected person. What I'm missing from the below formula? 

 

Office365Users.ManagerV2(SelectBox.Selected.Result).mail

 

Any suggestions?

 

Thanks,

Omi

 

 

13 REPLIES 13
RandyHayes
Super User
Super User

@omi18 

Okay, then you'll need to do a double call to the 365 user connector.

With({_user: First(Office365Users.SearchUserV2({SearchTerm:SelectBox.Selected.Result, top:1).value)},

    Office365Users.ManagerV2(_user.Mail).mail

)
_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

@RandyHayes 

 

I'm getting below error 

 

on 

Office365Users.ManagerV2(_user.Mail)

omi18_0-1629497801808.png

 

Thanks,

Omi

RandyHayes
Super User
Super User

@omi18 

It appears you are passing a gmail account to that function...that will never work!  What is the First function returning and what is the email column value?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

@RandyHayes ,

 

Thanks, Now it works. It was picking the name from the different column. 

 

-Omi

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (3,156)