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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create a collection fr...
Power Apps
Answered

Create a collection from SharePoint with ShowColumns where one of the columns is a user/group type

(0) ShareShare
ReportReport
Posted on by 229

Hi, 

 

I am trying to create a collection from a SP list. I would like to have only 3 of the columns: "ID" (number) "Title"(text) and "Owner" (user/group). The syntaxis is as follow:

      ClearCollect(colReport, ShowColumns(MySPList, "ID", "Title", "Owner")

 

That create the collection but with two issues:

  • Everything is a type text in the collection. When I use ID I have to convert it using Value().
  • The Owner column is a record and displaying the following icon Capture.JPG. I would like to add here the DisplayName od the record, but I haven't found the way of doing it. Tried Owner.DisplayName but it is not working.

 

Any idea on how to solve this?

 

Thanks

 

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @Sam4 

    You can ADDCOLUMNS columns to include ID as a number data type and Owner.DisplayName as a text data type.  I suggest leaving the original columns in the Collection in case they are needed.

     

    Put this code in a behaviour based property such as OnVisible or OnSelect.

    ClearCollect(
     colReport,
     AddColumns(
     ShowColumns(MySPList,"ID","Title","Owner"),
     "ID_Number", Value(ID),
     "Owner_DisplayName",Owner.DisplayName
     )
    );

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Sam4 Profile Picture
    229 on at

    Awesome 🙂 Many thanks

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard