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

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.

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

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (1,656)