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

Display Image

Hello,

 

I have the image item set to "Office365Users.UserPhotoV2(Gallery5.Selected.email1)" and it shows the image of the O365 user. 

 

What I'm trying is if there no image for the O365 user then show a different image. Can we do this in powerapps?

 

Any suggestions? 

 

Thanks,

Omi

1 ACCEPTED SOLUTION

Accepted Solutions
Advocate II
Advocate II

You can use the UserPhotoMetadata to determin if they have a photo and then act accordingly, 

e.g.

If(Office365Users.UserPhotoMetadata(Gallery5.Selected.email1).HasPhoto, Office365Users.UserPhotoV2(Gallery5.Selected.email1), SampleImage)


View solution in original post

2 REPLIES 2
Advocate II
Advocate II

You can use the UserPhotoMetadata to determin if they have a photo and then act accordingly, 

e.g.

If(Office365Users.UserPhotoMetadata(Gallery5.Selected.email1).HasPhoto, Office365Users.UserPhotoV2(Gallery5.Selected.email1), SampleImage)


View solution in original post

Helper V
Helper V

Hi @James_McKie ,

 

Worked as expected. 

 

Thanks,

Omi

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

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

Top Solution Authors
Top Kudoed Authors
Users online (65,462)