cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Suep Kudo Kingpin
Kudo Kingpin

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
Community Support
Community Support

Re: Org Browser Error

Hi @Suep,

 

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.
Suep Kudo Kingpin
Kudo Kingpin

Re: Org Browser Error

Michael,

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

Community Support
Community Support

Re: Org Browser Error

Hi @Suep,

 

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.
Suep Kudo Kingpin
Kudo Kingpin

Re: Org Browser Error

 

 

SheaORG error.JPG

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

Highlighted
Suep Kudo Kingpin
Kudo Kingpin

Re: Org Browser Error

 

 

SheaORG error.JPG

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

Community Support
Community Support

Re: Org Browser Error

Hi @Suep,

 

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,095)