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 / Pictures from powerapp...
Power Apps
Answered

Pictures from powerapps to sharepoint back to powerapps using flow - not working

(0) ShareShare
ReportReport
Posted on by 2

I am tryig to get a picture into sharepoint from powerapps but then send the Url back to powerapps so i can use that to patch and update the picture column in a sharepoint list.

This is the formula used on the 'button'

Set(HtmlText1,'Flow-SaveCarPicfromPAtoSP'.Run(DataCardValue117.Text&Label7.Text&".jpg",takenpic))

attached is the flow i am using.

 

Not sure where I went wrong, and the photos are currently showing black in the sharepoint folder.

Categories:
I have the same question (0)
  • PR1 Profile Picture
    2 on at
    Capture.PNG
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @PR1,

    Could you please share a bit more about the issue on your side?

    How do you take/upload the picture within your app? Using Camera control or Add picture control?

    Further, could you please share a screenshot about your app's configuration?

     

    I assume that you taken the picture using Camera control within your app, I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:

    Flow's configuration:5.JPG

    Within "Create file" action, set the File content field to following formula:

    dataUriToBinary(triggerBody()['Createfile_FileContent'])

    App's configuration:6.JPG

     

    7.JPG

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

    Set(UrlLink,'20181005_case6'.Run(TextInput1.Text&".jpg",Camera1.Photo))

    The flow works successfully as below:8.JPG

    The uploaded picture as below:

    9.JPG

     

    10.JPG

    If you use Add picture control to capture the picture that you want to upload to your SP library, I think there is something wrong with your flow's configuration. The picture the Add picture control captured would return a blob data rather than a Image URl Data, so the dataUriToBinary() function within your flow would not work.

    If you want to upload a picture captured via Add picture control from PowerApps to SP library, please check the following blog:

    http://repointtechnologies.com/saving-images-from-powerapps-to-sharepoint/

    In addition, the MVP user @John Liu has found a simplest solution to upload a picture captured via Add picture control from PowerApps to SP library. Please check and see the following blog:

    http://johnliu.net/blog/2018/7/the-simplest-no-code-solution-to-save-pictures-files-from-powerapps-to-flow

     

    Best regards,

    Kris

  • kharina Profile Picture
    249 on at

    Hi Kris, 

     

    I am trying your suggested solution but since I'm not a microsoft flow-savy, I can't find the other options.  May I ask:

     

    1. If the folder path in SP create file the same as the Library Name in SP get file properties?

    2. "Link" that you showed in the 3rd task , respond to PA, is that the "text" option?

     

    Thank You in advance,

    KH

     

    PAtoSPtoPAcamera.JPG

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard