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

Office 365 connector user photo

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

1 ACCEPTED SOLUTION

Accepted Solutions
Alex_Security
Resolver I
Resolver I

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 🙂 

View solution in original post

2 REPLIES 2
Alex_Security
Resolver I
Resolver I

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 🙂 

View solution in original post

Worked like a charm. Thanks @Alex_Security 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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