cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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.

Michael,

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

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.

 

 

SheaORG error.JPG

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

 

 

SheaORG error.JPG

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

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (77,030)