I have built a Canvas Power App to take a photo and send it to a Sharepoint Folder. My camera control is "Camera1" and I have a text input field for the filename "SKUInput"
I have a Submit button with this code in OnSelect:
If( !IsBlank(SKUInput.Text), NewStockPhotos.Run( SKUInput.Text & ".jpg", // File name JSON(Camera1.Photo, JSONFormat.IncludeBinaryData) // File content ), Notify("Please enter a SKU.", NotificationType.Error) )
I am using a Power Automate template saved as NewStockPhotos. It is a Microsoft template found here: https://make.powerautomate.com/environments/Default-774d3f34-6850-4d5b-856b-92537239edf7/galleries/public/templates/fe971b57c1994482b565ccfce936900d/upload-a-photo-to-sharepoint-from-power-apps.
I have added my Sharepoint Site and the Folder for Storing the images \New Stock Photos.
I cannot get it to save the image to my Sharepoint folder. It fails in the Compose section of the Power Flow with this message:
InvalidTemplate Unable to process template language expressions in action 'Convert_to_binary_image' inputs at line '0' and column '0': 'The template language function 'dataUriToBinary' expects its parameter to be formatted as a valid data URI. The provided value '' was not formatted correctly. Please see https://aka.ms/logicexpressions#dataUriToBinary for usage details.'.
Any ideas? Regards from Richard
I have tried using CoPilot to help but it is taking me around in circles. Apart from adding my SharePoint site and folder name "New Stock Photos" I have used the Power Automate template as it comes
stampcoin
105
Michael E. Gernaey
82
Super User 2025 Season 1
David_MA
62
Super User 2025 Season 1