cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JR-BejeweledOne
Super User
Super User

Office365Users connector not functioning properly

I am seeing a very strange issue with the Office365Users connector.   I am trying to get a value for a person other than the current user.

 

Using this (with a correct email address):   Office365Users.UserProfileV2(firstname.lastname@company.com).displayName gives me an error.

 

The tooltip AND the documentation indicates that you need either the UserPrincipalName or email Id in this space.   But the errors are very strange.

 

Using an email address I get:

 

Invalid use of '.' or UPError.png

 

If I use the User Principal Name I get:

 

UPError2.png



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

In this case the email address or the UPN needs to be surrounded by quotes to denote its a string.

Office365Users.UserProfileV2("firstname.lastname@company.com").displayName


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
zmansuri
Super User
Super User

a16.jpg

Are you using email id in double inverted comma?

Pstork1
Dual Super User
Dual Super User

In this case the email address or the UPN needs to be surrounded by quotes to denote its a string.

Office365Users.UserProfileV2("firstname.lastname@company.com").displayName


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

That is now working correctly.   Yesterday it wasn't working even with quotes.    Don't know what was going on there.



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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