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 : vp+yg54Th6A2K/oNrASeLR
Power Apps - Microsoft Dataverse
Answered

Sending Image attachments to Dataverse

Like (0) ShareShare
ReportReport
Posted on 21 Mar 2024 21:37:35 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' 

Categories:
  • Shashank Bhide Profile Picture
    940 Moderator on 22 Mar 2024 at 07:27:00
    Re: Sending Image attachments to Dataverse

    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

  • Verified answer
    v-jefferni Profile Picture
    on 22 Mar 2024 at 03:12:02
    Re: Sending Image attachments to Dataverse

    Hi @DPiperLB ,

     

    Please refer to below video:

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

     

    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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics

Loading complete