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 Apps - Microsoft Dataverse
Suggested Answer

Need help saving custom Attachment Control to Dataverse (Process schedules) using Patch()

(1) ShareShare
ReportReport
Posted on by 2

Hi everyone,

I am working with a Dataverse table Process schedules, which does NOT have an attachment field.

In my Canvas App, I added a custom attachment control inside a custom data card (not part of the Dataverse form fields).

 

I want to save these uploaded attachments when clicking the Save button.

However, when I try

Patch(
'Process schedules',
LookUp('Process schedules', 'PS ID' = varRecordEdit),
{ Attachments: DataCardValue49.Attachments }
);


…I get red line errors because:

 

  •  

    The table has no attachment column


  •  

    My attachment control exists only inside the form, not in the Dataverse table



  •  
 

I learned that these attachments must be stored in Dataverse Notes (Annotations) instead.

But I am confused about:

 

  1.  

    How to correctly Patch attachment files to the Notes table


  2.  

    How to link each attachment to the correct Process schedules record


  3.  

    How to show the saved attachments in a gallery


  4.  

    How to build Download and Delete buttons



  5.  
 

Here are screenshots of my form and error messages:

📎 Attachment:

📎 Attachment:
📎 Attachment
📎 Attachment

 

👉 I need help with the exact Patch() formula to save attachments into Notes, and also the gallery formula.

 

Any guidance would be greatly appreciated!

I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    4,856 Super User 2025 Season 2 on at
    Need help saving custom Attachment Control to Dataverse (Process schedules) using Patch()
     
    When you create a table with file type columns, make sure to check “Enable Attachments (including notes and files”).
     
     
    I believe you haven't enabled the attachment column to the Data-verse Table.
     
    Then you patch the data in this way.
     
     
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.

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…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 724 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
SebS Profile Picture

SebS 239 Moderator

Last 30 days Overall leaderboard

Featured topics