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 / Patching Attachments
Power Apps
Answered

Patching Attachments

(0) ShareShare
ReportReport
Posted on by 138

I have a form that allows a user to click a button and creates a duplicate record (by way of patching) and it works great…except that it won’t copy the attachments to the new record. It will copy every other field, except not the attachments.

I can’t seem to make the patch code patch. I have several fields in patch code, I put Attachments in as the column, the data card name and .Attachments. I know I’m selecting the right name because it even suggests putting Attachments after the dot.
It then gives a line stating, “The type of this argument ‘{Attachments}’ does not match the expected type ‘Attachment’. Found type ‘Table’. The function ‘Patch’ has some invalid arguments”

So, then I changed the column name to Attachment (singular) to see if that made a difference and, of course, it states that column doesn’t exist and the most similar name is ‘Attachments’

Any thoughts?

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @Roystreet ,

    Sorry, you cannot use Patch on Attachments once they are saved in a record (you can only Patch them with FormName.Updates off a Form). You would have use a Flow, sending the two IDs (you can return the new one as a Variable from the result of the Patch) and then use Get Attachments/Add Attachment to copy them over.

     

    Please click Accept as solution 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 giving it Thumbs Up.

     

     

  • Roystreet Profile Picture
    138 on at

    Thank you for your help

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard