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 Automate / Save Power Apps Camera...
Power Automate
Unanswered

Save Power Apps Camera/Gallery Image to SharePoint Folder Flow

(0) ShareShare
ReportReport
Posted on by 5,325 Super User 2025 Season 2

I have Screen1.

I have ImageGallery1, with Labels.

I have Camera1 control.

I want to be able to create a SharePoint folder using the 'Event Name', then populate that folder with the taken by Camera1 and displayed in Gallery1, titled using the two labels (name and document type) in Gallery1 as the name of the saved file.

Phineas_0-1703273133546.png

 

Phineas_1-1703272593949.png

 

Categories:
I have the same question (0)
  • schwibach Profile Picture
    2 Moderator on at

    I don't see the question, yet.
    Shane Young has an excellent video about file upload.
    PowerApps upload file to SharePoint document library - YouTube

    Which step are you struggling with?

  • Phineas Profile Picture
    5,325 Super User 2025 Season 2 on at

    The flow works. It creates the folder and the file.

    But when I try to open the saved file, Windows say there is no program that can open the file, even though it was saved as jpg or png.


    Button Code -
    UploadEventImagesFlow.Run(Event_Registration_Photo_Gallery_Name_Fld.Text,Event_Registration_Document_Type_Dropdown.Selected.Value,{File: {name: Event_Registration_Document_Type_Dropdown.Selected.Value, contentBytes: First(DataCardValue42_1.Attachments)}})

    Phineas_1-1703385537430.png

     

    Flow -

    Phineas_3-1703385537513.png

  • Verified answer
    schwibach Profile Picture
    2 Moderator on at

    https://youtu.be/3QaiM8SeWfM?si=lzBFxnIDKECNy-p0&t=907

    Rewatch the video starting here.

     

    It seems that you are missing the base 64 encoding for the file content.

  • Phineas Profile Picture
    5,325 Super User 2025 Season 2 on at

    Finally worked out an answer, with the help of other community members.

    I still have this thread open and haven't gotten any responses.

    Wondering if you have any thoughts on a solution to getting the image to appear?
    ******************************************************************************************

    How do I get an image from a Power Apps gallery to appear in a saved PDF?

    I am using the following formula with the accompanying flow to save a Power Apps gallery as a PDF in a SharePoint Library.

    Set(varEmailTemplate, PDF(Email_Gallery));
    SavePurchaseOrderasPDF.Run(Email_Cutomer_Name_Fld.Text &"-"& Email_Machine_Model_Fld.Text &"-"& Email_Reference_ID_Fld.Text & ".pdf",

    {
    file: {
    name: Email_Cutomer_Name_Fld.Text &"-"& Email_Machine_Model_Fld.Text &"-"& Email_Sold_Date_Fld.Text & ".pdf",
    contentBytes: PDF(Email_Gallery)
    }
    }
    );

    Phineas_0-1703450159069.png

     


    The PDF file is saving to the library. I am getting everything but the image from the Power Apps gallery. The image control IS within
    the gallery.


    View of Power Apps Gallery -

    Phineas_1-1703450158596.png

     


    View of Saved PDF -

    Phineas_2-1703450158546.png

     


    Both of the following formulas return an image to the Power Apps screen image control.
    Note: The image property, using both formulas, shows 'None', even though an image does appear in image control.

    Edit_PO_Device_Image.Image

    //LookUp(Machine_Image_Collection,Model_Name in Edit_PO_Model_Fld.Selected.Value).'Thumbnail ({Thumbnail})'.Medium


    The source image control, from the main screen - where the 'Edit_PO_Devcie_Image' is located, is using the following formula.
    Note: Its image property value also shows 'None'.
    LookUp(Machine_Image_Collection,Model_Name in Edit_PO_Model_Fld.Selected.Value).'Thumbnail ({Thumbnail})'.Medium

    Phineas_3-1703450158723.png

     

     

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard