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'
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.
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473