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?
Solved! Go to Solution.
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.
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.
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!
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.
User | Count |
---|---|
142 | |
142 | |
77 | |
74 | |
71 |
User | Count |
---|---|
232 | |
166 | |
75 | |
67 | |
61 |