cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VilPel
Helper I
Helper I

Displaying an icon in gallery if the current user exists in the list item's "User or Group" column

Hi guys,

 

I have created an example app to demonstrate my issue. I'm using SharePoint as my data source and I have created a gallery in Power Apps to display the data as shown as below.

attendees.pngScreenshot_5.png

The column I'm interested in is the Attendees column which is an "User or Group"-type of column and it accepts multiple values. Now let's say Jaakko logs into this app. I want to show an icon to display if the current user exists in the Attendees column. If the user doesn't exist in the Attendees column, no icon is show in the gallery. Jaakko's screen would look like this...

attendees2.png

...because he exists in the Attendees column. I have tried to apply If(ThisItem.Attendees.DisplayName = User().FullName,
true, false) to the icon's Visible-property without success. Please help!

 

Ville

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User III
Super User III

Try:

If(User().FullName in ThisItem.Attendees.DisplayName ,true, false)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

1 REPLY 1
eka24
Super User III
Super User III

Try:

If(User().FullName in ThisItem.Attendees.DisplayName ,true, false)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Top Kudoed Authors
Users online (44,701)