Hello,
I'm getting the below error message while trying to retrieve O365 user picture.
Error: the method 'userphotov2' has an invalid value for parameter 'id'
I have this code for the Image: If(Office365Users.UserPhotoMetadata(Gallery5.Selected.email1).HasPhoto, Office365Users.UserPhotoV2(Gallery5.Selected.email1),RefIMG.Image)
Any suggestions?
Thanks,
Omi
Solved! Go to Solution.
Hi @omi18 ,
I used to answer a similar question to yours in another thread, and my solution did work for that man.
So I would suggest you try this formula:
If(
!IsBlank(Gallery5.Selected.email1),
If(
Office365Users.UserPhotoMetadata(Gallery5.Selected.email1).HasPhoto=true,
Office365Users.UserPhotoV2(Gallery5.Selected.email1),
RefIMG.Image
)
)
Best regards,
Allen
I've had the same issue in the past. When restarting the app it magically worked sometimes..
I have an app that uses the exact same code like yours. The only difference is that i'm using Office365Users.UserPhoto() instead of UserPhotoV2
Kind regards
Ryan
Hi @omi18 ,
I used to answer a similar question to yours in another thread, and my solution did work for that man.
So I would suggest you try this formula:
If(
!IsBlank(Gallery5.Selected.email1),
If(
Office365Users.UserPhotoMetadata(Gallery5.Selected.email1).HasPhoto=true,
Office365Users.UserPhotoV2(Gallery5.Selected.email1),
RefIMG.Image
)
)
Best regards,
Allen
User | Count |
---|---|
252 | |
107 | |
89 | |
51 | |
44 |