web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to select a image ...
Power Apps
Answered

How to select a image from a gallery?

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I have a small question......I'm building an application where you can add 1 to 3 pictures to a gallery. Now I want to insert the pictures into my excel database. But I've got a problem, How can I select the picture that I want to insert? because now the application adds only the last picture three times........ I've attached some photos of my application and database. Hopefully someone can help me.....?

 

Rob

 

Sorry for my bad Englisch.....Smiley Wink

 

My code:

 

If(CountRows(CameraPhotos) = 1; Patch(ImageTable; Defaults(ImageTable);
        formScan.Updates;
        formDiscription.Updates;
{Image1: Camera1.Photo});                                                                                                                                              If(CountRows(CameraPhotos) = 2; Patch(ImageTable; Defaults(ImageTable);
        formScan.Updates;
        formDiscription.Updates;                                                                                                                                                        {Image1: Camera1.Photo};
{Image2: Camera1.Photo});                                                                                                                                              If(CountRows(CameraPhotos) = 3; Patch(ImageTable; Defaults(ImageTable);
        formScan.Updates;
        formDiscription.Updates;                                                                                                                                                        {Image1: Camera1.Photo};                                                                                                                                                        {Image2: Camera1.Photo};
{Image3: Camera1.Photo}))))

Screenshot from application.png
Photos from app.PNG
Excel DB.PNG
Categories:
I have the same question (0)
  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @RobPetrogas,

     

    Instead of selecting one camera control for 3 times and using Patch to update the image, I would like to suggest that you use 3 camera controls and insert each one to each image column data card.

     

    In the Edit Form, select the image data card, unlock it and insert a camera control. Then you can also insert a Image control beside it to make the taken photo shown in Image control. Then set the Update property of the image data card to:

     

    ImageControlName.Image

     

     

    Do this for each image data cards. Then you would be able to save each images together with the SubmitForm function.

    1.jpg

     

    Regards,

    Mona

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard