Hello,
I have a collection with images, and I want to save the images to a record in a dataverse database. I have this formula but it only saves a single image.
This is my formula
ForAll(ColFotos;
Patch('BD Visitas';GalVisitas.Selected;{Fotos:ThisRecord.Value}))
So I guess it is not possible to store multiple pictures for one record. You need to store the pictures in an additional table and associate the relevant pictures with your record.
Maybe you could describe the problem you want to solve with your solution to find an appropriate solution architecture.
The formula generates an error, "Invalid argument type (Table). A Record value was expected instead
Hi @CarlosN,
I wonder if it is even possible to upload multiple images to one image column. Could you upload the images if you are using a form of the table? Maybe you need to store the images in another table and add a relationship to your record.
Best regards
Jeanine
Hi @CarlosN,
as I understand you want to save an array of photos to one record. With your formula you update the same record with your photos and in the end you only see the last update. I guess you need to save a table of photos to your record.
You could try something like this:
Patch('BD Visitas';GalVisitas.Selected;colFotos)
Best regards
Jeanine
my collection is these
Set(
VarFotos;
GUID()
);;
Collect(
ColFotos;
{
NombreFoto: VarFotos & ".jpg";
Id: VarFotos & ".jpg";
Value: Camera1.Photo
}
)
Yes, I can see all the images (photos) contained in the gallery.
Just save the first photo.
Does your collection contain all of the images when you view it in the canvas editor?
You would need to make sure all the records are getting selected and added to your collection you wish to patch for it to work.
mmbr1606
22
Super User 2025 Season 1
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1