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 image from powe...
Power Apps
Answered

Saving image from power apps to sharepoint

(0) ShareShare
ReportReport
Posted on by 642

Hello community experts,

There is a requirement where i need to save the image captured using camera control from power apps to share point.

 

I was able to achieve that.

 

But whenever i capture new image then it will override the existing image in sharepoint

 

Each time i capture image from power app's, it should be stored as a new record in sharepoint

 

How do i achieve this requirement

 

Kindly guide,

Best Regards,

Sumaira Noor

Categories:
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    What formula are you using to save. Might be instead of saving as new you are Rather updating the record.

    Watch this video:

    https://youtu.be/2QeOILfo1Bw

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Sumaira Profile Picture
    642 on at
    Thanks a lot for the response @eka24 Here is the formula I'm using On-select of Camera control ClearCollect(colPhoto, Camera1.Photo) On select of image I'm using the below formula First(colPhoto).Url I'm new to power apps and sharepoint so please advise Please advise Best Regards, Sumaira Noor
  • eka24 Profile Picture
    20,925 on at

    What is the name of your Sharepointlist list and the Column you are saving to.

    Did you watch the video as well.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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

    Hi @Sumaira ,

    Could you please share a bit more about your scenario?

    How do you store the image data captured from your canvas app to your SP List? Store the image into a "Multiple Lines of Text" type column or attach it as a attachment of a SP List Item? Using Patch function to submit data back to your SP List?

     

    Based on the needs that you mentioned, I think the "Multiple lines of Text" type column in your SP List could achieve your needs. Please consider take a try with the following workaround:

    1. Add a "Multiple Lines of Text" type column in your SP list, which is used to store the captured image data from your canvas app.

    2. Within your canvas app, refresh the SP List data source

    3. Set the OnSelect property of the Camera control to following:

    ClearCollect(
     colPhoto, 
     Substitute(JSON(Camera1.Photo, JSONFormat.IncludeBinaryData),"""", "")
    )

    Set the Image property of the Image control to following:

    First(colPhoto).Value

    Set the OnSelect property of the "Submit" button to following (press it to submit data back to your SP List😞

    Patch(
     'Your SP List',
     Defaults('Your SP List'),
     {
     Title: "Image Uploaded at " & Now(),
     MultipleLinesTextColumn: First(colPhoto).Value
     }
    )

    After that, the image data would be stored in your SP list as below:

    5.JPG

    If you want to display the stored image data in your canvas app from your SP list, you could reference the Multiple Lines of Text type column value directly in the Image property of the Image control.

     

    Please check and see if the following thread would help in your scenario:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Uploading-images-to-SharePoint-list-without-using-Flow/td-p/482731

     

    Best regards,

  • Sumaira Profile Picture
    642 on at

    Thanks a lot for the response @v-xida-msft 

    @v-xida-msftsorry for the delayed response, i was working on priority tasks

     

    I'm using the below controls and formulas, please advise

    When i click on camera it should capture the image

    PA1.PNG

     

    Once the image is captured it should be stored within power apps only like below

    and once i click on the below image, it should be saved in sharepoint,

    PA2.PNG

     

    I'm using the below flow to be stored in sharepoint, it is getting stored, but when i capture new image using camera and when i try to submit to sharepoint, it will override the existing image by new image. Where as I'm looking for the image to be created and saved every time as a new record in sharepointPA3.PNG

    Below is my sharepoint listPA4.PNG

     

    Kindly advise

    Best Regards,

    Sumaira Noor

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

    Hi @Sumaira ,

    If you want to create new image file in your SP Library each time you click the image in your canvas app, you must make sure the image file name is different for each time.

     

    If the image file name is same each time you uploaded it to your SP Library, the previous image file would be override with the new image file content. 

     

    As an fixed solution, please modify your 'Flow Name'.Run() formula in your canvas app as below:

    UploadaphototoSharePointfromPowerApps.Run(
     "Pic-" & Now() & ".jpg", // make your uploaded image file name unique
     MyPicct
    )

    Note: Please make sure the image file name is unique each time you uploaded image file to your SP List

     

    Please try above solution, then check if the issue is solved.

     

    Best regards,

  • Sumaira Profile Picture
    642 on at

    Thanks a lot for the help @v-xida-msft

    It solved my problem:)

    Best Regards,

    Sumaira Noor

  • AmariBarino Profile Picture
    59 on at

    Hello, this solution worked for me and I even went a step further by editing the sharepoint details form in PowerApps so that I can see the image. I wanted to know if anyone has ever tried sending the image in an email. I cannot figure out a way to do this. Any help is greatly appreciated. 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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard