cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Super User
Super User

PowerApps AddPicture Control to Sharepoint Picture Library?

Hello,

I have an app that uses a Camera Control-to-Flow to upload photos to a Sharepoint Picture Library. Works just fine. Unfortunately, the Flow (which uses dataUriToBinary expression) fails when uploading a photo using the AddPicture Control.

 

Is there a simple way to leverage the AddPicture Control and Flow to move a photo to a Sharepoint Picture Library?


Thank you

3 REPLIES 3
Dual Super User III
Dual Super User III

Hi @ericonline , 

 

Please refer to the screenshot of the flow. Assuming that you already created the powerapp and the button control triggers the flow. 

 

Expression on the button 

'PowerAppsbutton-2'.Run("TestYash.jpeg",Camera2.Photo)

Here, PowerAppsbutton-2 is the name of my Flow, TestYash.jpeg is the file name I am requesting to powerapps from flow, Camera2 is the camera control and Camera2.Photo is the blob I am sending from powerapps to Flow. MicrosoftTeams-image (55).png

Expression in compose:

dataUriToBinary(triggerBody()['Initializevariable_Value'])

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Hello @yashag2255. Thank you for the reply.
I already have a Flow which utilized the Camera control. I need a Flow that utilized the AddPicture control (Insert/Media/Add Picture).

Hi @ericonline , 

 

Please refer to the following thread :

 

https://powerusers.microsoft.com/t5/Creating-Apps/Convert-Added-Image-Media-String-to-be-saved-as-Im...

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,128)