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 / Saving Images to share...
Power Apps
Answered

Saving Images to sharepoint

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

I have been trying to figure out how to save captured images from powerapps into my share point list. 

I have set up my camera and a button that captures the image. I wanted to be able to view my images in powerapps so I set up a gallery and form. But for some reason each image after the first one comes out blank, and not sure why. 

In my SP List I set up the image column as a multi-line column. Can someone please let me know if this isn't working because it's not possible or because I must have something wrong. Please see attached as to how my gallery and form look and my share point list. 

Capture.PNG
Capture2.PNG
Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    How do you save the Captured Image data from your app to your SP List? Could you please share a bit more about the formula?

    Could you please share a bit more about the ImageData column in your SP list? Is it a Multiple-line Text type column in your SP list?

     

    I assume that the ImageData column is a Multiple-line Text type column in your SP list, is it true? Based on the issue that you mentioned, I think there is something issue with the formula you used to save captured images from your app to your flow.

     

    I have made a test on my side, please take a try with the following workaround:5.JPG

     

     

    6.JPG

     

    7.JPG

    Within the screen1, set the OnSelect property of the Camera control to following:

    Collect(ImagesCollection, {PicName: "Captured Pic-"&Now(), PicContent: Camera1.Photo})

    Note: Please use the OnSelect property of the Camera control to capture pictures rather than add another button to capture pics. If you use another button control to capture the pictures taken by Camera control, the captured image collection would include a blank value.

    Set the OnSelect property of the "Upload to SP List" button to following:

    ForAll(ImagesCollection, Patch('20190617_case14', Defaults('20190617_case14'),{Title: PicName, ImageData: PicContent}))

    on your side, you should type following:

    ForAll(
    ImagesCollection,
    Patch(
    'YourSPList',
    Defaults('YourSPList'),
    {
    Title: PicName,
    ImageData: PicContent
    }
    )
    )

    The data structure of my SP list as below:8.JPG

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • PytByt Profile Picture
    943 on at

    Hi @v-xida-msft 

     

    I following your solution step byt step, even with the exact naming of the field and etc, but i get the blank gallery in screen 2.

     

    what i do wrong?

     

    blank url.png

  • joef Profile Picture
    on at

    Hi @v-xida-msft,

    Great post, but is there a way to actually display the image in SharePoint?

     

    Thanks,

    Joe

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard