
Announcements
Office365Users.UserPhoto(ThisItem.Email)
I have this code above where it shows the userphoto of the user however when the user does not have photo I want to use a default image I downloaded. How can I do it?
Import the default picture into your Power Apps media. Then use this code in the image's Image property to check if the user has an image, otherwise, show the default image.
If( Office365Users.UserPhotoMetadata(ThisItem.Email).HasPhoto = true, Office365Users.UserPhoto(ThisItem.Email), 'your default image name') )
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."