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 / How to add more data i...
Power Apps
Unanswered

How to add more data into Collection?

(0) ShareShare
ReportReport
Posted on by 997

Hello,

I was wondering how i can add more data into the collection

I always use this code to add into my collection

Button Select in Gallery:

If(!IsBlank(LookUp(colPickUp1;ID = ThisItem.ID));Remove(colPickUp1; LookUp(colPickUp1; ID=ThisItem.ID));
 Collect(colPickUp1;ThisItem)
);;

So i was wondering how to add only some columns

Like for example i like to add only

ID

HasSent =1

Because i have no clue how we can even add that inside this line

Collect(colPickUp1;ThisItem)

Anyone can helpme please?

Thank you

Categories:
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @TimmyBoy 

     

    Try this

     

    Button Select in Gallery:

    If(
    !IsBlank(LookUp(colPickUp1; ID = ThisItem.ID));
    Remove(colPickUp1; LookUp(colPickUp1; ID = ThisItem.ID));
    Collect(colPickUp1; {ID: ThisItem.ID, HasSent: 1})
    );

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • TimmyBoy Profile Picture
    997 on at

    Hello @Rajkumar_404 

    It seems it gives us a incompatible error

    TimmyBoy_0-1697876386124.png

     

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard