Skip to main content

Notifications

Community site session details

Community site session details

Session Id : VBHXpMmjWTYo7hJrBREfcH
Power Automate - Building Flows
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 10 Apr 2020 03:03:04 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

  • KrishnaV Profile Picture
    5,023 on 10 Apr 2020 at 23:50:09
    Re: Not able to uplaoad files to sharepoint using power automate and powerApps

    Jcook,

     

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

     

    Regards,

    Krishna

  • Jcook Profile Picture
    7,770 Most Valuable Professional on 10 Apr 2020 at 19:57:41
    Re: Not able to uplaoad files to sharepoint using power automate and powerApps

    @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 10 Apr 2020 at 18:43:27
    Re: Not able to uplaoad files to sharepoint using power automate and powerApps

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

     

    regards,

    Krishna

  • KrishnaV Profile Picture
    5,023 on 10 Apr 2020 at 18:43:04
    Re: Not able to uplaoad files to sharepoint using power automate and powerApps

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

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

     

    Regards,

    Krishna

  • Jcook Profile Picture
    7,770 Most Valuable Professional on 10 Apr 2020 at 16:40:48
    Re: Not able to uplaoad files to sharepoint using power automate and powerApps

    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.

  • v-litu-msft Profile Picture
    on 10 Apr 2020 at 09:13:12
    Re: Not able to uplaoad files to sharepoint using power automate and powerApps

    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.

  • efialttes Profile Picture
    14,756 on 10 Apr 2020 at 09:13:01
    Re: Not able to uplaoad files to sharepoint using power automate and powerApps

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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 97

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard