Skip to main content
Community site session details

Community site session details

Session Id : f2m5HYUcPe/n+PG92f48JA
Power Automate - Building Flows
Answered

Can not upload file from powerapps to sharepoint

Like (0) ShareShare
ReportReport
Posted on 14 Dec 2022 08:33:46 by 28

Dear All,

I try to create an automate to upload data from powerapps to sharepoint. When i run manually, it is successful. But i run in powerapps , it is fail. i see the error " Unable to process template language expressions in action 'Create_file' inputs at line '0' and column '0': 'The template language expression 'triggerBody()['file']['Name']' cannot be evaluated because property 'file' cannot be selected. Please see https://aka.ms/logicexpressions for usage details.'.". Can you please help to resolve it ? Thanks you so much.Untitled.jpg

  • ITSYS Profile Picture
    28 on 17 Dec 2022 at 01:31:15
    Re: Can not upload file from powerapps to sharepoint

    Hi V-Chengfen-msft,

    Thank for your support, the test run have created file success on my sharepoint , then i add this flow to powerapps, but i see the new issue.

    "Access denied.
    clientRequestId: 2ccc0aa0-df44-44f0-9d35-07b3a135df7d
    serviceRequestId: 2ccc0aa0-df44-44f0-9d35-07b3a135df7"

     

    I checked connection in flow, it is normal.

  • Verified answer
    v-chengfen-msft Profile Picture
    on 15 Dec 2022 at 08:28:36
    Re: Can not upload file from powerapps to sharepoint

    Hi @ITSYS ,

    I found two video explanations, detailed video explanations should help you more

     

    Here are some links for your reference:

    https://www.youtube.com/watch?v=5XsWgVnR7SU

    https://www.youtube.com/watch?v=UYK7yruBHDM

     

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

    Best Regards

    Cheng Feng

  • v-chengfen-msft Profile Picture
    on 15 Dec 2022 at 06:42:55
    Re: Can not upload file from powerapps to sharepoint

    Hi @ITSYS ,

    I found two video explanations, detailed video explanations should help you more

     

    Here are some links for your reference:

    https://www.youtube.com/watch?v=5XsWgVnR7SU

    https://www.youtube.com/watch?v=UYK7yruBHDM

     

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

    Best Regards

    Cheng Feng

  • ITSYS Profile Picture
    28 on 15 Dec 2022 at 06:23:15
    Re: Can not upload file from powerapps to sharepoint

    Hi v-chengfen-msft,

    The flow run successful with test. but it's failed in powerapps.

    ITSYS_0-1671085343510.png

     

    ITSYS_1-1671085386950.png

     

     

  • v-chengfen-msft Profile Picture
    on 14 Dec 2022 at 09:13:41
    Re: Can not upload file from powerapps to sharepoint

    Hi @ITSYS ,

    Here is a test for your reference:
    Note (remember to include the suffix in the file name, otherwise the file content cannot be recognized)

    vchengfenmsft_0-1671009119145.png

    Here is result:

    vchengfenmsft_1-1671009143783.png

     

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

    Best Regards

    Cheng Feng

     

  • ITSYS Profile Picture
    28 on 14 Dec 2022 at 08:59:17
    Re: Can not upload file from powerapps to sharepoint

    Hi v-chengfen-msft,

    As you say, user must input name of files which will be uploaded from powerapps. I try adding Textinput to get Filename but it still same.

  • v-chengfen-msft Profile Picture
    on 14 Dec 2022 at 08:44:46
    Re: Can not upload file from powerapps to sharepoint

    HI @ITSYS ,

    The reason for this problem is:
    You get the content of the file, not the filename,
    You can't get filename with formula

    vchengfenmsft_2-1671007323093.png

     

    vchengfenmsft_1-1671007304694.png

    Please try to add a Text input to get the filename from power apps

     

    vchengfenmsft_0-1671007254013.png

     

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

    Best Regards

    Cheng Feng

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Loading complete