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

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,297 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

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 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard