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
Highlighted
Dual Super User III
Dual Super User III

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!

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

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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,785)