In Today’s Article, I will explain how we can easily save a signature from your PowerApps Application to SharePoint document library as an image file.
Requirements:
For this demo, I will create a new Canvas App (Phone layout).
All we need in this app are:
Your app should look like this:
The Power Automate Flow is triggered from the PowerApp and receives two parameters:
The trigger of the PowerAutomate flow looks like this:
Next, we will need to use the SharePoint/ Create File action, to save the image to a SharePoint Document library
Here, I define:
Your entire Power Automate would look like this:
Back to Power Apps, we will need to include the flow in our PowerApps.
Finally, let’s have a look at the button’s action:
What I am doing here, is just to call the PowerAutomate Flow, and pass both parameters, File Content and Filename.
SignatureToSp.Run( { contentBytes: PenInput1.Image, name: Text( Today(), "ddmmyyy" ) & "_signature.jpg" }, Text( Today(), "ddmmyyy" ) & "_signature.jpg" )
That’s it, enjoy !
Full solution available at: https://github.com/samirlogisam/PowerApps-Signature-to-Sharepoint