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

Office365Users.MyProfileV2('$select:'

I have an app that needs the employeeId field from Azure AD.  I've set up a flow and passed the employeeId back to PowerApps, but I was hoping to find a way to do it with a direct connection from PowerApps.  I've found documentation on the Office365 Users connection that says that you can select additional fields outside of the default ( https://docs.microsoft.com/en-us/connectors/office365users/).  IntelliSense gives a {'$select': option on Office365Users.MyProfileV2().

I've created a button to do the following:

Set(varUserV2Select,Office365Users.MyProfileV2({'$select':"userPrincipalName,employeeId,displayName,mail,mailNickname"}))

I can still only get to all of the default fields.  I can't figure out how to get to employeeId.  Is this even possible, or am I reading too much into the documentation?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@mandi-parker 

Yes...reading a little too much into the documentation!

Although you can pass the fields that you want to return, you can still only access the values that there are properties for on the GraphUser object that is returned.  If there was an employeeId property on that, then it would work, but there is, sadly enough, none at this time.

 

Not the answer you expected perhaps, but I hope it helps.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

3 REPLIES 3
Super User III
Super User III

@mandi-parker 

Yes...reading a little too much into the documentation!

Although you can pass the fields that you want to return, you can still only access the values that there are properties for on the GraphUser object that is returned.  If there was an employeeId property on that, then it would work, but there is, sadly enough, none at this time.

 

Not the answer you expected perhaps, but I hope it helps.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Thank you, @RandyHayes 

 

So select is a way to limit the data returned and not to get to additional fields available through the Graph API for Get User, then.  Does anyone have any other ways to get to this other than going through flow?  Custom connection to Graph API through PowerApps?  Thanks!

 

@mandi-parker 

Yes, you can do a custom connector.  I've done that in the past to get around the issue. But, it is a custom connector (mind you license) and it does require some steps to put in place.

However...word on the street is that PowerApps will soon be able to access the Graph API more completely - this is purely anecdotal based on a conversation from Build this year, I cannot confirm it.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

Helpful resources

Announcements
News & Announcements

Community Blog

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

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,852)