Re: Copy files from SharePoint to local folder, including folders and nested folders.
Hi @Anonymous,
Could you please share more details about your SharePoint library folder structure and your local folder structure?
Could you please share a screenshot of your flow's configuration?
Does your SharePoint library has same folder structure with your local folder structure?
I have created a SharePoint library folder structure as below:
I have created a local folder structure as below:
I have made a test on my side and please take a try with the following workaround:
- Add a "When a file is created (Properties only)" trigger, specify Site Address and Library name.
- Add a "Get file content" action, specify Site Address, File Identifier field set to Identifier dynamic content of the trigger.
- Add a "Create file" action, Folder Path field set to following formula:
/Folder path dynamic content of the trigger
File name field set to File name with extension dynamic content of the trigger, File content field set to File Content dynamic content of the "Get file content" action.
Image reference:
The flow works successfully as below:
When a new file is uploaded into the SharePoint library folder:
The file would be copied into corresponding local folder:
Please also check and see if the following thread would help in your scenario:
https://powerusers.microsoft.com/t5/Building-Flows/Need-help-creating-Sharepoint-Folders-and-subfolders-with-Flow/m-p/79682/highlight/true#M7941
Best regards,
Kris