cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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
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
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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (16,846)