cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SnowFlake
Level: Powered On

Filtering gallery by User logged in by referencing a multi-select people picker Column (SharePoint)

Hi Guys

 

I need to restrict what users see in a gallery based on if they assigned to that task or not.  I was writing the PeoplePicker.Selected.Email to SharePoint list as a Single line Text field and filtering on User().Email=UserEmailAddress.

worked perfectly. 

 

I now need to select multiple users to see 1 item in a gallery and cannot use the method above. The users allowed access will be captured in the SharePoint people picker.

Please, can you guys advise the best way to go about this or share links to solutions?  

 

Any help is appreciated, thanks in advance.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Filtering gallery by User logged in by referencing a multi-select people picker Column (SharePoi

@SnowFlake@

 

Where your muliple users are listed in your SharePoint list is it one column that allows muliple people to be selected? It looks like it is from what you put...I just like to confirm I am understanding correctly. 

 

If so, you can use = Filter(SPList, User().Email in ColumnName.Email)

 

It will search off multple names in one column if you use the "in"

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Filtering gallery by User logged in by referencing a multi-select people picker Column (SharePoi

@SnowFlake@

 

Where your muliple users are listed in your SharePoint list is it one column that allows muliple people to be selected? It looks like it is from what you put...I just like to confirm I am understanding correctly. 

 

If so, you can use = Filter(SPList, User().Email in ColumnName.Email)

 

It will search off multple names in one column if you use the "in"

View solution in original post

SnowFlake
Level: Powered On

Re: Filtering gallery by User logged in by referencing a multi-select people picker Column (SharePoi

@rebeccas 
Thank you most kindly.  I didn't know about In and Exactin. You have taught me a great deal. 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 206 members 5,155 guests
Please welcome our newest community members: