cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

Office365User Photo works but still error?

unkerror.png

Here is my screen, Above is the formula I used which returned the correct image, but I cant figure out why I am getting an error and how to get rid of it. 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User III
Dual Super User III

I don't think you can do the comparison for the userphotometadata since its a value, not a property.  Try switching the order of your formula to this.

If(Office365Users.UserPhotoMetadata(ThisItem.OwnerEmail).HasPhoto,Office365Users.UserPhoto(ThisItem.OwnerEmail), SampleImage)


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Community Support
Community Support

Hi @AGaudioASG ,

Could you please share a bit more about your scenario?

Do you display the User Profile photo based on the email?

 

Actually, it is an known issue with Office 365 Users connector. Please consider modify your formula as below:

If(
   Office365Users.UserPhotoMetadata(ThisItem.OwnerEmail).HasPhoto,
   Office365Users.UserPhoto(ThisItem.OwnerEmail),
   SampleImage
)

 

If the issue still exists, please consider turn on the "Formula-level error management" option within Advanced settings of App settings of your app, then re-load your app, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Dual Super User III
Dual Super User III

I don't think you can do the comparison for the userphotometadata since its a value, not a property.  Try switching the order of your formula to this.

If(Office365Users.UserPhotoMetadata(ThisItem.OwnerEmail).HasPhoto,Office365Users.UserPhoto(ThisItem.OwnerEmail), SampleImage)


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Community Support
Community Support

Hi @AGaudioASG ,

Could you please share a bit more about your scenario?

Do you display the User Profile photo based on the email?

 

Actually, it is an known issue with Office 365 Users connector. Please consider modify your formula as below:

If(
   Office365Users.UserPhotoMetadata(ThisItem.OwnerEmail).HasPhoto,
   Office365Users.UserPhoto(ThisItem.OwnerEmail),
   SampleImage
)

 

If the issue still exists, please consider turn on the "Formula-level error management" option within Advanced settings of App settings of your app, then re-load your app, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

your Answer worked! I did have to close all the way out of powerapps and reload. At first I just refreshed the page.

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (18,585)