cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DJB22
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
K-A-R-L 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
K-A-R-L 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

DJB22
New Member

Re: Remove Gallery Row if user has no picture

YOUR A BEAST MATE!!!! 

 

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

 

Thankyou!!!

Helpful resources

Announcements
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (7,713)