Notifications
Announcements
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}))
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.
Yes, I can see all the images (photos) contained in the gallery.Just save the first photo.
my collection is these
Set( VarFotos; GUID() );; Collect( ColFotos; { NombreFoto: VarFotos & ".jpg"; Id: VarFotos & ".jpg"; Value: Camera1.Photo } )
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
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.
The formula generates an error, "Invalid argument type (Table). A Record value was expected instead
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.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268