cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Remove Gallery Row if user has no picture

Hi Everyone!

 

Im currently developing a Powerapp using the "OfficeUser365" connector.

 

I want to hide all the gallery records/rows which do not have a "UserPhoto" attatched to their 365 account.

 

I assume it might have something to do with the "UserPhotoMetaData" function but i have no idea on how to use it 

 

Thankyou!!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Solution Specialist
Solution Specialist

Re: Remove Gallery Row if user has no picture

Hi @DJB22,

 

You probably need to filter the gallery with users that has O365 photos.

 

Are you using a text input to populate the gallery by using search? If yes, try this code:

TextInput1 = name if the Text Input



*Add this to your Gallery Items Property*
Filter(Office365Users.SearchUser({searchTerm:TextInput1.Text}),Office365Users.UserPhotoMetadata(Id).HasPhoto = true)

Please let me know if you need help.

Cheers

View solution in original post

2 REPLIES 2
Highlighted
Solution Specialist
Solution Specialist

Re: Remove Gallery Row if user has no picture

Hi @DJB22,

 

You probably need to filter the gallery with users that has O365 photos.

 

Are you using a text input to populate the gallery by using search? If yes, try this code:

TextInput1 = name if the Text Input



*Add this to your Gallery Items Property*
Filter(Office365Users.SearchUser({searchTerm:TextInput1.Text}),Office365Users.UserPhotoMetadata(Id).HasPhoto = true)

Please let me know if you need help.

Cheers

View solution in original post

Highlighted
New Member

Re: Remove Gallery Row if user has no picture

YOUR A BEAST MATE!!!! 

 

It worked a charm :))))))))))))

 

Thankyou!!!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,880)