Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
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}))
Categories:
  • _minnies_ Profile Picture
    91 on at
    Re: save imagen from gallery

    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.

     

  • CarlosN Profile Picture
    on at
    Re: save imagen from gallery

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

  • _minnies_ Profile Picture
    91 on at
    Re: save imagen from gallery

    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

  • _minnies_ Profile Picture
    91 on at
    Re: save imagen from gallery

    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

  • CarlosN Profile Picture
    on at
    Re: save imagen from gallery

    my collection is these

    Set(
     VarFotos;
     GUID()
    );;
    Collect(
     ColFotos;
     {
     NombreFoto: VarFotos & ".jpg";
     Id: VarFotos & ".jpg";
     Value: Camera1.Photo
     }
    )
  • CarlosN Profile Picture
    on at
    Re: save imagen from gallery

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

  • armanaxf Profile Picture
    32 on at
    Re: save imagen from gallery

    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. 

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics