cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MaheshSharma
Level: Power Up

Re: Pen input save image to SharePoint

Hi,

I am trying to do the same thing but having an issue in flow execution with error message in dataUriToBinary() method as following
"InvalidTemplate. Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '1995': 'The template language function 'dataUriToBinary' expects its parameter to be formatted as a valid data URI. The provided value 'appres://blobmanager/7270bfce54874fcd830756ba77f58d59/5' was not formatted correctly."

I am following exact steps from the YouTube tutorial video but it seems for the PenInput.Image only returns the image's blob storage address instead of the URI stream. Could you please help me to identify what am I doing wrong there.


Regards,

Mahesh

Claud87
Level: Powered On

Re: Pen input save image to SharePoint

Hi all,

 

Check on these blog entries from John Liu that will give you the exact workaround you need:

http://johnliu.net/blog/2018/7/the-simplest-no-code-solution-to-save-pictures-files-from-powerapps-t...

http://johnliu.net/blog/2019/4/flowninja-hack-87-lock-microsoft-flow-powerapps-trigger-to-upload-ima...

 

I tried the second link as a solution changing the Picture Control to Pen Input Control, and worked just the same. In the solution he used Microsoft Flow, so when creating my own flow I used the actions "Create item" and "Add attachment" instead of creating a file in document library as he indicated in the steps and it worked awesomely Smiley Very Happy

 

Hope it helps!

 

Cheers!

 

JTIBCO
Level: Powered On

Re: Pen input save image to SharePoint

Hi Marc400

Do you have the solution to save pen input image (from a collection) to a sharepoint List ?

Thank you in advance.

Regards

JP

JTIBCO
Level: Powered On

Re: Pen input save image to SharePoint

Hi Ericonline

I would like ti do the same ... 

Do you have the solution to save pen input image (from a collection) to a sharepoint List ?

Thank you in advance Smiley Happy

Regards

JP

Highlighted
dmart
Level: Powered On

Re: Pen input save image to SharePoint

For the PenInput, on collect(), what is LocalImage?

 

On my code for the peninput image capture, I wrote 

Collect(DataCardValue8, PenInput1.Image)

 

But it gives me an error saying I need a collection instead of the datacardvalue8 and peninput1.image says "expected a record or table value"

JensKofod
Level: Power Up

Re: Pen input save image to SharePoint

A new easy and multi-purpose solution to save pen-input to Sharepoint is found thanks to Shane Young, utilizing the addition of a PowerApps Json functionality added on 02/05/2019.

The Short description on how to make this work is to save the pen input image in a JSON format asking the JSON function to include Binary Data:

Set( PenVar, JSON( PenInput1.Image,JSONFormat.IncludeBinaryData ) );

Read full how-to and demo here: http://iiu.dk/2019/10/12/powerapps-pen-input/

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: 267 members 4,370 guests
Please welcome our newest community members: