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 / Collect certain column...
Power Apps
Answered

Collect certain columns with complex values

(0) ShareShare
ReportReport
Posted on by 5

I want to store specific columns with complex values from a SharePoint list into a collection. I know I can do:

 

 

 

Collect(ListName, ShowColumns("Title", "Description"))

 

 

to store specific column items to a collection; however, with complex column types like Choices and Person/Group, it's stored as an object. How can I get the values of those complex fields and store them in a collection?

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @shamwoox 

    You really don't need to convert the records to only their Value values.  Doing so will cause you more work later on if you expect to write them back to the datasource in any way.

     

    However, the following can do it - there are several ways.

    Collect(yourCollection, 
     ForAll(yourDataSource, 
     {Title: Title, 
     ChoiceValue: ChoiceColumnName.Value, 
     LookupValue: LookupColumnName.Value, 
     PersonValue: personColumnName.Email
     }
     )
    )

     

    I hope this is helpful for you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard