SharePoint Document Issues

Copy Selected SharePoint Online Files by Path with Power Automate

Bushra ParveenBushra Parveen Nov 18, 2026 870 views

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.

Copy Selected SharePoint Online Files by Path with Power Automate
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.
Before you start

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.

Solution 1Recommended

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.

1
Create a flow

In Power Automate, select Create, choose Instant cloud flow, and add the Manually trigger a flow trigger.

2
Enter the source paths

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"].

3
Look up each file

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.

4
Copy to SharePoint

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.

5
Test the flow

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 another SharePoint location
Permissions still apply: The flow uses its connector account's permissions. If a copy fails, check the failed action in the run history and verify access to both locations.
Free Microsoft Office alternative

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.

Open and edit documents collected from SharePointCompatible with Microsoft Office formats such as DOCX, XLSX, and PPTXFamiliar tools make the move from Microsoft Office easierFree and lightweight for everyday document work
microsoft office alternative - wps office

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.