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 specific record
Power Apps
Answered

Collect specific record

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello All,

 

I am trying to do what I was hoping would be simple, which is to add a specific data source record to a collection.

With that said, is there a way to grab an entire specific record and add it to a collection?

 

Any help would be appreciated.

Thank you,

Categories:
I have the same question (0)
  • Verified answer
    Edwin-Abdalian Profile Picture
    641 on at

    yes, absolutely. 

    if you want to get one specific record into a collection, use lookup on your datasource to get only 1 record

    ClearCollect(ColYourRecord, Lookup('YourDataSource', condition such as ID= Textbox1.Text))

    This will return only 1 record.

     

    if you want to get records that match a certain criteria and then insert them into a collection, use Filter on your datasource to get only those records

    ClearCollect(ColYourRecord, Filter('YourDataSource', condition such as ID= Textbox1.Text))

    this will return all the records that have ID= Textbox1.Text

    --------------------------------------------------------------------

    Please Accept as Solution if this post answered your question so other members can find it. If you found this post helpful consider giving my post a Thumbs Up!

  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Did you mean that you already have a collection exists and you want to add one record from another data source to this collection?

     

    If so, then the formula should be something like:

     

    Collect(CollectionName,Item)

    Item should be the record that you want to add to the collection. For example:

    Collect(CollectionName,Last(List1))

    This would add the last record in List1 data source to the collection.

     

     

    Regards,

    Mona

    Regards,

    Mona

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you sir, I was very close but you filled in the missing piece for me.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard