Hi everyone
I have a gallery with users and their picture that I get from the office 365 user connector.
The problem is I would like to use a image placeholder for user that don't have a picture.
Anyone that knows how I could do this?
Kind regards
Ryan
Solved! Go to Solution.
Hi Ryan,
so the Office365 user connector has a solution for this, the below formula should work:
If(Office365Users.UserPhotoMetadata(ThisItem.GlobalContact.Email).HasPhoto=false,SampleImage,Office365Users.UserPhoto(ThisItem.GlobalContact.Email))
where sample image is your replacement. the .HasPhoto appendage is really useful for stuff like this!
if this has solved your problem feel free to mark it as a solution 🙂
Hi Ryan,
so the Office365 user connector has a solution for this, the below formula should work:
If(Office365Users.UserPhotoMetadata(ThisItem.GlobalContact.Email).HasPhoto=false,SampleImage,Office365Users.UserPhoto(ThisItem.GlobalContact.Email))
where sample image is your replacement. the .HasPhoto appendage is really useful for stuff like this!
if this has solved your problem feel free to mark it as a solution 🙂
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
253 | |
122 | |
84 | |
84 | |
67 |