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 / save imagen from gallery
Power Apps
Unanswered

save imagen from gallery

(0) ShareShare
ReportReport
Posted on by

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}))
I have the same question (0)
  • armanaxf Profile Picture
    32 on at

    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. 

  • CarlosN Profile Picture
    on at

    Yes, I can see all the images (photos) contained in the gallery.
    Just save the first photo.

  • CarlosN Profile Picture
    on at

    my collection is these

    Set(
     VarFotos;
     GUID()
    );;
    Collect(
     ColFotos;
     {
     NombreFoto: VarFotos & ".jpg";
     Id: VarFotos & ".jpg";
     Value: Camera1.Photo
     }
    )
  • _minnies_ Profile Picture
    91 on at

    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

  • _minnies_ Profile Picture
    91 on at

    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

  • CarlosN Profile Picture
    on at

    The formula generates an error, "Invalid argument type (Table). A Record value was expected instead

  • _minnies_ Profile Picture
    91 on at

    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.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard