web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to save existing A...
Power Apps
Unanswered

How to save existing Attachments using SubmitForm (New)?

(0) ShareShare
ReportReport
Posted on by 14
Hello,
 
I have a project that requires me to copy an existing and completed record with attachments and submit it as new Request, means the existing old attachments must be included also.
 
I was able to solve the problem by using New Form instead of Edit form but having a problem with the attachments.
 
I was not able to save the existing attachments to the new record; If I added new attachments and it will only save the new attachments to the new record not the old existing once.
 
I tried using a separate form for attachment and used this code
Patch(Database, ThisRecord.LastSubmit, Form.Update);
But it is still not working.
 
My question is how can I save the old existing attachments when I copy the old record to re-submit them as new?
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    152,827 Most Valuable Professional on at
    How to save existing Attachments using SubmitForm (New)?
    Put this OnSuccess of the first form
    Patch(
       Database, 
       LookUp(
          Database,
          ID = Self.LastSubmit.ID
       ),
       YourFormName.Updates
    );
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
     
  • Power Platform 1919 Profile Picture
    1,773 on at
    How to save existing Attachments using SubmitForm (New)?
    To create a new record with patch function,
    Use this formula format:
     
    Patch(Datasource,Default(Datasource),Form.LastSubmit)
     
  • HappyPotato Profile Picture
    14 on at
    How to save existing Attachments using SubmitForm (New)?
     
    Thanks for the responses,
     
    I have already tried your solutions, but unfortunately, they are not working if the attachments are already existing, they would work only if they attached new attachments and the only items that will be saved are the new once not the existing one.
     
    The solution that I came up is to integrate the Power Automate.

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

Coming soon: forum hierarchy changes

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 308 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 222 Super User 2025 Season 2

Last 30 days Overall leaderboard