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

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:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 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,505 Super User 2025 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard