cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AGaudioASG
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
Pstork1
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

v-xida-msft
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
Pstork1
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

v-xida-msft
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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,033)