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 save existing A...
Power Apps
Answered

How to save existing Attachments using SubmitForm (New)?

(0) ShareShare
ReportReport
Posted on by 16
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
    155,283 Most Valuable Professional on at
    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
    2,205 Super User 2026 Season 1 on at
    To create a new record with patch function,
    Use this formula format:
     
    Patch(Datasource,Default(Datasource),Form.LastSubmit)
     
  • HappyPotato Profile Picture
    16 on at
     
    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.
  • Verified answer
    WarrenBelz Profile Picture
    155,283 Most Valuable Professional on at
    Yes - you are right as FormName.Updates only works if something is updated and this requires a bit more of a complex approach including a Flow here.
    You only need the ID of the existing record - also there is no need to display the attachments on the screen unless you want to. Your Flow looks like this
     
     
    and OnSuccess of your New form
    YourFlowName.Run(
        YourExistingID,
        Self.LastSubmit.ID
    )
    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  
     
  • Suggested answer
    VGKolar Profile Picture
    51 on at

    In Power Apps, when we are dealing with the SharePoint, attachments are stored separately from the main record. When you use NewForm() and SubmitForm(), only files currently present in the Attachments control are saved. Existing attachments from the original record are not copied automatically.

    Attachments are not included in Form.Updates, so using Patch () or Form.Update will not copy the existing attachments to a new record. Patch can only update standard fields and does not support reading or writing attachment content.

    To include existing attachments when creating a new record, you must use a Power Automate flow to read attachments from the original item and recreate them on the new item. This behavior is by design.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,055

#2
Valantis Profile Picture

Valantis 666

#2
11manish Profile Picture

11manish 666

Last 30 days Overall leaderboard