web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Not able to uplaoad fi...
Power Automate
Unanswered

Not able to uplaoad files to sharepoint using power automate and powerApps

(0) ShareShare
ReportReport
Posted on by 5,023

Hi Team,

 

I have been breaking my head from the last 3 hours as I am not able to upload files/images to the SharePoint library using PowerApps through power automate. I have followed the below article step by step advised in article http://johnliu.net/blog/2019/4/flowninja-hack-87-lock-microsoft-flow-powerapps-trigger-to-upload-images-to-sharepoint-with-ease but the flow was getting failed with the error as: "Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '2279': 'The template language function 'base64ToBinary' was invoked with a parameter that is not valid. The value cannot be decoded from base64 representation.'"
I have also tried the video blog https://www.youtube.com/watch?v=ZXWyDgDEHPo by @RezaDorrani but no luck.

 

flow error.png

This is my flow simple straight as advised in the blog.

flow error2.png

I really appreciate your help.

 

Regards,

Krishna

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hi!

    Not sure if the advice given in the following link can fit your needs

    https://social.msdn.microsoft.com/Forums/azure/en-US/0f8eefe4-e5b9-4d87-8b90-bdb85ec63ebf/incoming-base64-string-to-a-sharepoint-list-issue?forum=azurelogicapps

    Hope this helps

  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @KrishnaV,

     

    Could you share the code of the "Upload" button in PowerApps?

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hi @KrishnaV 

    What I have done in the past, was upload a attachment from Power Apps to SharePoint as a list item, using a Edit form in Power Apps.

     

    Than on Success of the form property, I would trigger a flow to grab that attachment from the list and create a file in a Document Library.

  • KrishnaV Profile Picture
    5,023 on at

    I am calling the flow with the input values as follows:

    'UploadfilestoSharepoint-2'.Run(UploadFile.Media,UploadFile.FileName)

     

    Regards,

    Krishna

  • KrishnaV Profile Picture
    5,023 on at

    unfortunately no 😞, I need this as a separate app not with the form in the list or a library.

     

    regards,

    Krishna

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    @KrishnaV 

     

    Right, my proposed suggestion is just an example.

     

    You can use the Form in Power Apps to upload the Attachment into SharePoint. The flow can be kicked off using the onSuccess property of the form.

    The flow does not have to add the document to a library. You can use my suggestion to get the File Content of the file.

     

    After the last step, you will be able to call the dynamic content for File ContentAfter the last step, you will be able to call the dynamic content for File Content

     

    The SharePoint list just acts as an intermediary to easily get the attachment out from Power Apps.

     

    After you get the Attachment content, you can put anywhere.

  • KrishnaV Profile Picture
    5,023 on at

    Jcook,

     

    Would you be able to share the flow with me? I am a little confused about your proposal.

     

    Regards,

    Krishna

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard