Hello everybody,
I'm having some issues after reading several posts and researching online, (first time app maker). Im creating an app and would like it to display the logged in users profile picture. Here is the code I used:
If(Office365Users.UserPhotoMetadata(Office365Users.MyProfile().Id).HasPhoto = false,'generic-user-profile',Office365Users.UserPhoto(Office365Users.MyProfile().Id))
I do not get any errors in the online studio but, when using on the mobile powerapps, I get 2 errors:
"Office365Users.UserPhotoMetadata failed: The method 'UserPhotoMetadata' has an invalid value for parameter 'userId' "
&
"Office365Users.UserPhoto failed: The method 'UserPhoto' has an invalid value for parameter 'userId' "
I honestly have no idead how to get this information to display without an error. The information displays but the error pops up on the mobile devices and doesn't look good. I've tried all possible combinations on a separate screen using text boxes to display just the user id and then pulling the photo information, it works but still shows the error. Does anybody else have any ideas feel like im hitting a wall.