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 / Attach image or take p...
Power Apps
Unanswered

Attach image or take picture on Form with Excel Table Datasource

(0) ShareShare
ReportReport
Posted on by 6

Hello, I have built a form (for manufacturing problem reporting) that is connected to an Excel Table. In the form there is a spot to attach a picture to illustrate the problem being described in the form. I would like users to be able to select a photograph, or use the camera to take a picture, and store that image with the record so it can be viewed on the form later. I have read some other posts but am not understanding if a Gallery is required to store the image (whether it's one or multiple), or if I can upload the picture to be stored in the excel table datasource. I inserted an "Add Picture" media control, which lets me attach a picture, but when I save the form and re-open that record to view or edit the picture is not there.

 

Can anyone help?

Categories:
I have the same question (0)
  • ArchitectMadhan Profile Picture
    1,584 on at

    Hi @kkindness ,

     

    You can have a image control in the Gallery, which will get the path of the image dynamically from the OneDrive. The image files has to be uploaded to OneDrive and store the path in your excel sheet. As you are using the excel sheet content as data source for your gallery it will not be a problem for you.

     

    Ref: https://powerusers.microsoft.com/t5/Building-Power-Apps/Save-and-display-saved-pictures-with-excel-on-onedrive/m-p/1373652

     

  • kkindness Profile Picture
    6 on at

    Thanks for the reply. I looked at the article that you linked, but it didn't work.

     

    If I set the image in my gallery to ThisItem.Value, it changes the data type to image. In the article linked above, it's using First(TableName).ColumnNameInExcel ... when I did this, it thinks the data type in the data table is text. When I take a picture with my app, nothing is getting saved to the column in excel.

     

    My table is named "MainTable", and the column I'm trying to save images to is called "ProblemIllustration[Image]". 

     

    When the user clicks a camera icon, it opens a new screen that has a camera control named "Camera" and a gallery  with Items = colImages. When user clicks the camera control, the OnSelect property is:

     

    Set(

    varname,

    GUID()

    );

    Collect(collimages,

    {DisplayName: varName & ".jpg",
    Id: varName & ".jpg",

    Value: Camera.Photo

    }

    );

     

    This captures photos taken by the Camera into the colImages gallery. But nothing is going to the Excel table.

     

    The intent is for images captured by Camera to show in colImages, and be written to the ProblemIllustration[Image] column in MainTable.

     

    Maybe I missed a step?

  • kevinK Profile Picture
    12 on at

    I ended up switching to a SharePoint list and used some of the built-in features (i.e. Attachments). I couldn't get the pictures to save to excel.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard