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 / Send multiple rows fro...
Power Apps
Answered

Send multiple rows from gallery to a collection upon submit

(0) ShareShare
ReportReport
Posted on by 28

Hi,

 

I want to send all items/images from a Gallery to a collection in one click. My approach:

msuser48_0-1660833784336.png

Output: When I click "Collect", only the first item/row in the Gallery is sent to the collection.

Question: How can I send all items/rows (a total of 3 images) from the Gallery to my collection when clicking "collect"?

 

Only items visible in the "attachments" box should be sent to the collection, of course.

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @msuser48 

    Please consider changing your Formula to the following:

    Collect(colImages,
     ForAll(ImageGallery.AllItems,
     {image_name: ImageTitle,
     image_blob: ActualImage
     }
     )
    )

     

    I hope this is helpful for you.

  • msuser48 Profile Picture
    28 on at

    @RandyHayesthis part definitely worked - thanks!

     

    However, when I click a "Submit" button with OnSelect propery as "Collect(table1, colImages)", it sends all data from this collection to the SQL Server's table1 - regardless of whether the data already exists in that table.

     

    How do I ensure that when I click "Submit", it only sends records to the SQL server, which do not already exist in table1 (image_name is what must not already exist in table1)?

     

     

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @msuser48 

    Yes, the formula only will create records as it is.  In order to restrict, it needs to have logic in it to exclude certain existing records.

    Is that part of all your other posts?

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard