cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Super User
Super User

Re: PowerApps AddPicture Control to Sharepoint Picture Library?

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!

Super User
Super User

Re: PowerApps AddPicture Control to Sharepoint Picture Library?

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).
Super User
Super User

Re: PowerApps AddPicture Control to Sharepoint Picture Library?

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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 46 members 4,343 guests
Please welcome our newest community members: