Hi,
I have this code in a picture control:
Office365Users.UserPhoto(Office365Users.MyProfile().Id)
But, if an user does not have an image, the following error is returned:
The service returned an error: Office365Users!UserPhoto: The server returned an 404 error (NotFound).
Is there any way to validate if an user has an image before calling the respective method?
Thanks,
Rui Barbosa
Solved! Go to Solution.
Maybe it's really late for an answer but with
Office365Users.UserPhotoMetadata(ThisItem.UserPrincipalName).HasPhoto
I had the same question and I found it through this discussion 😉