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 Supplier
Solution Supplier

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 Supplier
Solution Supplier

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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,511)