cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
landonjochim
Resolver II
Resolver II

Display all People from a People Picker field in List

For this post I will describe a much more basic example to what I am actually doing, but the concept is the same.

 

I have a SharePoint list with a People Picker column. You can select multiple people in this column.

 

I want to display all the people in a gallery

landonjochim_0-1641594255202.png

My gallery should contain any name that is in any List Item's "Employee" people picker field.

 

Thanks for any help.

1 REPLY 1
Alex_10
Super User
Super User

@landonjochim 

 

button.OnSelect = 
Clear(colDistinctPeopleFinal);
ForAll( Distinct(SP_list, Employee) As ThisMultiPeople,
    ForAll(ThisMultiPeople.Result As ThisPerson,
        If( !(ThisPerson in colDistinctPeopleFinal),
            Collect(colDistinctPeopleFinal, ThisPerson)
        )
    )
);

gallery.Items = SortByColumns(colDistinctPeopleFinal, "DisplayName", Ascending)

 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,151)