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 III
Dual Super User III

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 III
Dual Super User III

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

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,607)