Hi everyone
New to powerapps but slowly learning everything I can at a snails pace. I have a canvas app that connects to two SharePoint lists and also utilizes the Office 365 users connector. the gallery for office 365 users works and shows me all my users that are enabled. I wanted to show my user's profile picture on the image section of the gallery and if they do not have a profile pictures show a 'place holder' image.
I found a nifty youtube video which helped me a lot as I was struggling to get a placeholder image to work. So I used the function from that video which worked a treat and can now see a placeholder image where needed against users who do not have one.
Now when I am editing the app everything looks fine I do not get any red 'x's for my formulas and when 'Playing' the app everything works fine.
However, when publishing the app I want to search my office 365 users or load the page where the gallery is located. I get an error message for office365user.photmetadata - 'user ID', which for the life of me I can't figure out how to resolve. I've looked through most of the forums and some people have come up with ways to resolve but nothing works for me.
Maybe someone will spot what I am doing wrong as I can not see what
The image formula is here:
With(
{
personImage: Office365Users.UserPhotoV2(ThisItem.Mail),
hasphoto: Office365Users.UserPhotoMetadata(ThisItem.UserPrincipalName).HasPhoto
},
If(
hasphoto,
personImage,
Office365User <Name for my placeholder image)
)
)

