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 / PowerApps Canvas, Atta...
Power Apps
Suggested Answer

PowerApps Canvas, Attachments saving on multiple records

(0) ShareShare
ReportReport
Posted on by 2

Within a gallery object, I have various checkboxes that when selected populate into a collection. I have successfully connected that collection to my primary database and have a patch method that can save dates and text. My problem is I cannot get the attachments control to duplicate/save the items to the many database records identified by the collection. Any prospective solutions?

 

 

ForAll(
 collection,
 Patch(
 datasource,
 First(Filter(datasource, collection_col_name = 'RecordID')),
 {
 column1: DataCardValue2_5.SelectedDate
 // Attachments: DataCardValue23.Attachments
 }
 )
)

 

 

 

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @Quazimodo11 ,

     

    It's a bit more tricky to patch Attachments, but this post gives an easy workaround: Solved: Saving attachments using Patch - Power Platform Community (microsoft.com)

  • Quazimodo11 Profile Picture
    2 on at

    Hey @BCBuizer,

     

    Thanks for the response. Do you know if you can iterate through the form.update method, perhaps with a ForAll function? I briefly tried it earlier, but it seemed to only update the parent record.

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @Quazimodo11 ,

     

    So it's currently only updating one item? I thought that would be an issue when I read the formula...

     

    For that please try changing this line of the formula:

    First(Filter(datasource, collection_col_name = ThisRecord.'RecordID'))
  • Suggested answer
    CU01121000-0 Profile Picture
    2 on at
    Hello, i did exactly what you need! 
     
    https://medium.com/@Mehmet_Emin/save-a-file-as-an-attachment-for-multiple-records-in-power-apps-d1c39424bc05

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard