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
Memorable Member
Memorable Member

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,435)