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

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

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

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 508 members 4,469 guests
Please welcome our newest community members: