web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create Collection from...
Power Apps
Unanswered

Create Collection from SharePoint List "Person and Groups" field

(0) ShareShare
ReportReport
Posted on by 225

I have a SP List (Users) with various columns in, one being a "Person or Group" type called "Name".  How can I create a collection showing the details, such as "Display Name", "Email" of each person in the SP List?  

 

I have tried many different solutions found on the web and none work.

Thanks in advance.

Categories:
I have the same question (0)
  • StuartSmith Profile Picture
    225 on at

    Where are the greatest Power App minds when you need them? 🙂

  • StuartSmith Profile Picture
    225 on at

    Alternatively, I have a gallery in the app that shows the users found in the SP List called "Users".  I thought I would be able to create a collection using the gallery instead, but get the same issue.  How can I get the data held in each record into a single collection?  The gallery has "Name" and "Role" and if its easier, I could just work with the name field.  Could it be converted to text and saved in a gallery?

     2022-06-09_16-59-29.jpg

    2022-06-09_16-59-54.jpg

    Thanks in advance

  • Shazza Profile Picture
    4 on at

    Hey, try adding an AddColumns after Show Columns when creating the collection, then adding new columns specifically for the Display Name or Email, and using those instead. eg:

    ClearCollect(colNewCollectionName, ShowColumns(AddColumns(SPListName,"NewColumnDisplayName",SPFieldName.DisplayName),"NewColumnDisplayName"))

    then they should be a basic field instead of a record

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard