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
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (3,905)