Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 4bWi9gEminugSAq4/Ss++G
Power Automate - Building Flows
Suggested answer

Power Apps Camera Saving Image to Sharepoint Folder

Like (1) ShareShare
ReportReport
Posted on 24 Mar 2025 17:27:44 by
0

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

Categories:
  • Suggested answer
    Michael E. Gernaey Profile Picture
    42,048 Super User 2025 Season 1 on 05 Apr 2025 at 06:43:58
    Power Apps Camera Saving Image to Sharepoint Folder
     
    Did you get this working or do you still need help?
     
    Also, I don't want to look at a template, I want to see what you did, your inputs, outputs etc. So I can see where the mistake or issue is.
     
    please share some pictures, let's look at your data, especially in the flow you said fails, share that flow run with the inputs and outputs of each action as well as the action that fails and we can get you fixed right up!! I have an inventory app for all my Christmas decorations that uses the camera and SharePoint and works so should not be an issue.
     
    Cheers!
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 105

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 62 Super User 2025 Season 1

Overall leaderboard
Loading started