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?
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
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:
For the Userphoto function, please check:
Regards,
Michael
Does this help? I'm wondering if it has anything to do with the users w/o pictures?
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
User | Count |
---|---|
195 | |
123 | |
86 | |
48 | |
41 |
User | Count |
---|---|
281 | |
163 | |
138 | |
80 | |
76 |