cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Org Browser Error

I created the Org Browser Power App adding a employee picture on the last screen. The app works fine but I have an error message of "The method 'UserPhoto' has an invalid value for parameter 'userID'. How can this be fixed?

6 REPLIES 6
v-micsh-msft
Community Support
Community Support

Hi @Anonymous,

 

Please take a try to change the formula as below:

Office365Users.UserPhoto(First(EmployeeProfile).Id)

Or

Office365Users.UserPhoto(First(EmployeeProfile).Mail)

See if doing this would help.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Michael,

Thank you for you reply. I have tried both of the functions on your reply and neither work. Any suggestions?

Hi @Anonymous,

 

Would you please share the error messages in a screenshot?which data you are trying to work with?

the UserID for the Office365.Userphoto() should be the User principal name or email id.

Check the document below:

Office 365 Users

For the Userphoto function, please check:

Connector reference

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

 

 

SheaORG error.JPG

Does this help? I'm wondering if it has anything to do with the users w/o pictures? 

Anonymous
Not applicable

 

 

SheaORG error.JPG

Does this help? I'm wondering if it has anything to do with the users w/o pictures? 

Hi @Anonymous,

 

The Email used in the userPhoto should be within the same organization as yours.

The error message told that the Value input for the Office365Users.UserPhoto () is not right.

Please verify the Email Address or the corresponding UserId.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,132)