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 / Attachment file or ima...
Power Apps
Unanswered

Attachment file or image column

(2) ShareShare
ReportReport
Posted on by 16
Good evening everyone,
 
I have experienced a little issue when creating attachment column in Dataverse,  automatically it turns Read only column. So, I couldn't patch updates to this attachment column knowing that patch function go through without any error.
 
I created edit form including many items from the Dataverse table + attachment field. All new data are submitted as updates to the row in Dataverse except the attachment.
 
Security role is Administrator.  I am the owner of my environment. Also, I am member in a new role with permissions of read, write .... append on all Dataverse table + Annotation permission as well.
 
Please help.
 
Thank you.
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,325 Super User 2025 Season 2 on at
     
    Please share what you have (don't simply explain it) as we need to validate your configuration, table, expressions, you name it.
     
    Also for attachments are notes etc enabled?
  • gates78 Profile Picture
    16 on at
    Yes, the notes / attachments are enabled on this dataverse table. the issue is , I am not able to edit the column Attachments because it is read only as follow:
     
  • Verified answer
    SwatiSTW Profile Picture
    741 Super User 2025 Season 2 on at
    Your issue is because Dataverse's Attachment column is stored in the Annotation table, which is a system table that stores file attachments separately from the main record. This results in the attachment field appearing as read-only in Power Apps, preventing direct updates using the Patch() function.
     
    Further, your security role should include Create, Read, Write, Delete, Append, and Append To permissions on the Annotation table.
     
    Since the Patch() function does not work with attachments, you should use a PowerApps Form to handle file uploads.
    Other way round is using Power Automate to upload the file and link it to your record. You may call the Dataverse API to create an Annotation record and link it to your row.
     
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,325 Super User 2025 Season 2 on at
     
    If you want to update an Image / File Column you can in fact use Patch.
     
    But you will need to get the content (whether its the image, or its the file). The best and easiest way to do this is to use the Attachment control, to add the image you want to store (or file).
     
    Then grab the Content and Filename from the Attachment Control, NOT to submit it from the Control.
     
    So essentially you end up with something like this
    Attachment Control called MyAttachments and I'll just assume you have 1
     
    Patch(MyTable, Defaults(MyTable),
        {
           MyAttachmentColumn: 
                 { 
                     FileName: First(MyAttachments.Attachments).Name,
                     Value: First(MyAttachments.Attachments).Value
                 }
        }
    );
     
    Now you can do it without the Control but it does make it easier. Again same for if its a picture but you could be using the Camera Control for instance to grab the data from.
     
    But as the previous poster stated Attachments is  different beast (as actual "notes attachments")

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