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 upload a photo ...
Power Apps
Answered

How to upload a photo to a custom image field in a CDS entity? What is the difference between having a custom image field and using the Attachment control?

(0) ShareShare
ReportReport
Posted on by 189

I have a CDS entity. It has a field named ReceiptImage. It is of image type. In my app I have a form that lets users upload a photo (just one) to the ReceiptImage field, but the photos aren't saving/uploading.

 

I hear there is an Attachment control but it doesn't seem to be an actual field in my CDS entity. Am I supposed to use the Attachment control in my Powerapps form to get the image from the user into the app, and then transfer that image from the Attachment control to the ReceiptImage field I actually want populated? 

 

How do I get this to work please?

Categories:
  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Lexicron ,

    Do you want to update an image type field in entity?

    Firstly, let me tell you the differences between the image field and Attachments.

    Each entity has a metadata field called Attachments, which generated by system.

    This field is updated by Attachments control inside a form.

    And this field's data is stored in Note entity, not current entity.

    While image type field is a custom field created manually.

    This field could be updated by Image control, camera control, add picture control.

    This field data could only be seen in powerapps.

     

    I've made a similar test for your reference:

    1)penimage is my image field

    testmanies is my entity name

    2)insert an add picture control

    insert a submit button

    3)set the submit button's OnSelect:

    Patch(testmanies,Defaults(testmanies),{penimage:UploadedImage1.Image})

    4148.PNG

     

    4)To view this field, you just need to insert a gallery, set the gallery's Items to this entity.

    set an image control 's Image inside the gallery:

    ThisItem.penimage

     4149.PNG

     

     

    Best regards,

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard