Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Copy new files from your PC to SharePoint flow template does not work

The below flow template does not work:


I can confirm the following:

  • I have On-premises data gateway installed on my PC
  • I make no modifications to the template, other than defining and adding a new connection, and specifying a SharePoint library to upload a site into.
  • After activiating the flow and saving a file into the folder defined in the new connection, the flow fails with the below inputs and outputs. 
  • There appears to be an issue with the inputs - it is not passing the file folder that was defined in the connection. The flow does not allow me to edit the existing connection to review the saved folder.


"api": {
"runtimeUrl": ""
"connection": {
"name": "/providers/Microsoft.PowerApps/apis/shared_filesystem/connections/shared-filesystem-a67b28fe-7890-4c55-b57c-c88d9506ee40"



"scheme": "Key",
"parameter": "*sanitized*",
"value": "*sanitized*",
"type": "Raw"

"folderId": ""



"Pragma": "no-cache",
"x-ms-request-id": "56201224-509e-42dc-8a11-980dc3dc99ee",
"Timing-Allow-Origin": "*",
"Cache-Control": "no-cache",
"Date": "Thu, 29 Jun 2017 03:59:15 GMT",
"Set-Cookie": "ARRAffinity=b72875202f78b3207e210dacc3385d4360e0779d57c0c23d1a3e3f5fd0a63571;Path=/;HttpOnly;",
"Server": "Microsoft-IIS/8.0,Microsoft-HTTPAPI/2.0",
"X-AspNet-Version": "4.0.30319",
"X-Powered-By": "ASP.NET",
"Content-Length": "160",
"Content-Type": "application/json; charset=utf-8",
"Expires": "-1"



"status": 400,
"message": "A value must be provided for folder identifier.",
"source": ""

Community Support
Community Support

Re: Copy new files from your PC to SharePoint flow template does not work

Hi Gratorn,


Please make sure you have created the File system connection properly.

I test with the template you provided, but I found that it doesn’t work. So I create a flow from blank using the trigger “File system – when one or more files are created”, and it is working.


Please check the connection you have created, you could also try to start the flow from blank with same trigger and action.


Please feel free reply if you are still having the issue.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Regular Visitor

Re: Copy new files from your PC to SharePoint flow template does not work

Hi Mabel, thanks for the reply. 


I've tried creating a flow from scratch as you suggested, but haven't had any luck in getting it to upload a file into a SharePoint library. When you configured the flow, what dynamic content value did you add into the 'File Content' field? The list of dynamic content options available appear to only provide attributes related to the metadata of the file, and not the file itself. 



Helpful resources


New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!


Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (4,638)