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 / Sending Image attachme...
Power Apps
Unanswered

Sending Image attachments to Dataverse

(0) ShareShare
ReportReport
Posted on by 76

Hello. 

I've been tasked with updating a PowerApp someone else worked on before me. 

They used the 'Add Picture' control to upload images, however, we need to be able to upload multiple images at once. 

The data source uses Dataverse. 

After thinking about it for a bit, I figured the best way to do this is to use an Attachment control. I enabled 'Attachments' for the dataverse table. 

When the user adds pictures to the Attachments control, these attachments should be saved to the Dataverse table, but I'm having trouble finding out how to assing the attachments as images. 

I set the 'OnSuccess' field on the form to:
ForAll(
DataCardValue3.Attachments,
Patch(
plate_temp_photos,
Defaults(plate_temp_photos),
{
'Temp Photos ID': GUID(),
lb_PhotoId: GUID(),
Photo: ThisRecord.Value
}
)
)

But I keep getting an error stating, "The type of argument 'lb_photo' does not match the expected type 'Record', found type 'Text' 

I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @DPiperLB ,

     

    Please refer to below video:

    Upload files to Dataverse from Power Apps | Patch multiple files | File Column tutorial (youtube.com)

     

    Best regards,

  • Shashank Bhide Profile Picture
    942 Moderator on at

    Design wise it's generally recommended to not load Dataverse with media blobs as it leads to more storage costs, an alternate approach is to integrate blob storage. you can check this article.

     

    https://www.linkedin.com/pulse/part1-code-embedded-canvas-app-uploading-files-from-model-bhide/?trackingId=JrYgnbDURIyX%2F4ftYWHelw%3D%3D

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