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

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,177)