Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Create Collection from SharePoint List "Person and Groups" field

(0) ShareShare
ReportReport
Posted on by 207

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:
  • Shazza Profile Picture
    4 on at
    Re: Create Collection from SharePoint List "Person and Groups" field

    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

  • StuartSmith Profile Picture
    207 on at
    Re: Create Collection from SharePoint List "Person and Groups" field

    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

  • StuartSmith Profile Picture
    207 on at
    Re: Create Collection from SharePoint List "Person and Groups" field

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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard