Copy Selected SharePoint Online Files by Path with Power Automate
Question details
Copy a selected set of files from a large SharePoint Online library to another SharePoint location, OneDrive for Business, or a local folder.

- Product
- SharePoint Online and Power Automate
- Device & OS
- not provided
- Scenario
- An organization needs to collect 10 to 100 files identified by name or path for external sharing.
- Observed behavior
- Manual Explorer and command-line copying can encounter permission problems.
Gather the exact source paths, including library and folder names, and identify the destination folder. Confirm that the account used by Power Automate can read the source files and create files at the destination.
Copy selected files to another SharePoint location
Use a path list and a Power Automate flow to copy selected files without browsing the entire library.
This approach uses exact paths rather than file names alone, so it can distinguish files with the same name in different folders.
In Power Automate, select Create, choose Instant cloud flow, and add the Manually trigger a flow trigger.
Add an Initialize variable action, set its type to Array, and enter the source file paths as a JSON array of strings, such as ["/Shared Documents/Reports/report.docx", "/Shared Documents/Plans/plan.xlsx"].
Add Apply to each and select the array variable as its input. Inside the loop, add the SharePoint Get file metadata using path action, select the source site, and use the current array item as the File Path.
Inside the same loop, add SharePoint Copy file. Select the source site and the Identifier from the metadata action, then choose the destination site and folder. Set the available conflict behavior for files with the same name.
Select Save and Test, run the flow with a small path list, and check the destination folder and run history before processing the full list.

Copy selected files to OneDrive for Business
Use this approach when the destination is a OneDrive for Business folder or a synced local folder.
Work with copied Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Office files after you copy them. Its format compatibility helps you move between Office apps without a complicated transition; it does not replace SharePoint or automate the transfer.

Frequently Asked Questions
Can I select files by name instead of full path?
A name alone may match files in several folders. Use exact paths when possible, or build a search or listing step that returns the intended file identifiers before copying.
Why does the flow report an access error?
Check the failed action in the flow run history. The SharePoint and OneDrive connector accounts need permission to read the source files and create files in the destination.
What happens if a destination file has the same name?
For SharePoint Copy file, choose the available conflict behavior in the action. For OneDrive Create file, test the flow with duplicate names and check the run history for conflicts.
Does copying files automatically share them externally?
No. After copying, use the destination file or folder's Share option and choose an allowed external sharing setting. Your organization may restrict which links or recipients are available.




