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 / edit form saving photos
Power Apps
Answered

edit form saving photos

(0) ShareShare
ReportReport
Posted on by 64

Hi y'all, 

 

I am pretty sure there is someone out there who can give me a hint, how I can solve this issue: 

 

I am building a Ticketsystem for Facility Management. Just a Edit Form with a few Data Cards that will be saved in a SPO list. I want to safe attachments also, I can do this by browsing files and upload them. What I am trying to achieve is to use the Camera function to take several pictures (right now I generate a collection "MyPix" for the taken pictures) and upload them together with the other DataCards of the form into the SPO list. The pictures should show up in the SPO list column "attachments". 

 

Any idea how to solve that? 

 

Thanks, Simon

FM_Ticket1.1.jpg
FM_Ticket2.1.jpg
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    HI @Frank89 ,

    I have done a blog on storing and viewing Power Apps images in SharePoint. The process for doing what you need is explained in there.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @Frank89 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Frank89 Profile Picture
    64 on at

    Hi @WarrenBelz

    thanks for your help! I managed to create Photo_Screen using the camera control Camera1_1 to take pictures, showing these pictures in Gallery4_1 and sending these pictures to a SPO library by clicking Button4_2 ("Fotos dem Ticket hinzufügen"). Compare attached picture FM_Ticket1

     

    I am using Power Automate to realize this, see attached picture FM_Ticket2

     

    My problem is, that I don't want to save these pictures in a document library, but a SPO list. I created the Edit_Screen, where I choose my SPO list FM-Tickets_Test a data source. I can use it to create tickets and save the given information in this SPO list. I can also attach data from my computer using the attachment control. See attached picture FM_Ticket3.

     

    But what I want to realize is to save the pictures taken on the Photo_Screen in my SPO list (column attachment or any other column). 

     

    How can I save the taken pictures together with the other ticket information (from Edit_Form1) in one item in my SPO list? 

     

    Thanks for your help!!

    Simon

    FM_Ticket1.jpg
    FM_Ticket2.jpg
    FM_Ticket3.jpg
  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @Frank89 ,

    The blog also covers two other possibilities - storing in multi-line text fields as Base64 Text (but you would need one field for each photo) or storing as attachments to the list. Probably the attachments are the option.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Frank89 ,

     

    Could you tell me:

    1. Do you have a camera control and a collection? Do you want to add the photos you took to your collection?
    2. Do you submit these photos to the list as attachments when you submitted data on edit form control?

     

    If my assumption is correct, I did a test for you:

    1\ Build an instant flow. Its function is to add photo attachments cyclically.

    v-xiaochen-msft_0-1610516024387.png

     

    Initialize variable value: ask in powerapps // Its function is to get the ID value of the record you want to update or create

    v-xiaochen-msft_1-1610516024389.png

     

    Initialize variable value2 : ask in powerapps // Get photo information in the collection

    v-xiaochen-msft_2-1610516024391.png

     

    Schema:
    
     {
    
     "type": "array",
    
     "items": {
    
     "type": "object",
    
     "properties": {
    
     "Test": {
    
     "type": "string"
    
     }
    
     },
    
     "required": [
    
     "Test"
    
     ]
    
     }
    
    }

    v-xiaochen-msft_3-1610516024393.png

     

    Id: int(triggerBody()['Initializevariable_Value'])
    
    File Name: rand(1,1000) .png // As long as the attachment name is not repeated. The formula is just for testing, it may repeat.
    
    File Content: dataUriToBinary(items('Apply_to_each')['Test'])

     

    2\ Build your canvas app. Add a camera control and add a button control.

    Set the onselect property of the button control to:

    Collect(AAA,{Test:Camera1.Photo}) // This is used to collect photos

     

    3\ Add a button control. Add flow to it and set its onselect property to:

    SubmitForm(EditForm1);Set(Thevar,EditForm1.LastSubmit.ID);TEST16.Run(Thevar,JSON(AAA,JSONFormat.IncludeBinaryData)) // TEST16 is the name of my flow

    v-xiaochen-msft_4-1610516024394.png

     

    v-xiaochen-msft_5-1610516158149.png

     

     

     

    Best Regards,

    Wearsky

    If my post helps, then please consider Accept it as the solution to help others. Thanks.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard