Power Automate copy files with Examples

In this Power Automate tutorial, we will discuss Power Automate copy files action. And also we will discuss the below points:

  • Power automate copy file from one sharepoint library to another
  • Power automate copy file from SharePoint to SharePoint
  • Power automate copy file from network drive to SharePoint
  • Power automate copy file from a shared drive to SharePoint
  • Power automate copy file from SharePoint to local drive
  • Power automate copy file from OneDrive to a network drive
  • Power automate copy file with new name

Power Automate copy file from one SharePoint library to another

Here we will see how Power Automate copy file from one SharePoint library to another.

So here when a file is created in the SharePoint document library it will automatically copy the file to another library on the same SharePoint site.

Let’s see how to copy files from one SharePoint library to another using Power Automate.

In Power Automate, select the trigger ‘When a file is created in a folder‘ action, then provide the site address and Folder id from the folder.

power automate copy file from one sharepoint library to another
power automate copy file from one SharePoint library to another

Once the file gets created we will copy the file, so click on the Next step and select Copy file action. Then Provide the current site address, file to copy from the dynamic content, destination site address, destination folder, and if another file is there select copy file with a new name from the option.

 How power automate copy file from one sharepoint library to another
How power automate copy file from one Sharepoint library to another

Now click on Save and to run the flow create a file in SharePoint Document Library.

Microsoft Flow copy file from one sharepoint library to another
Microsoft Flow copy file from one sharepoint library to another

After the copy the file from the SharePoint Documents library to the SharePoint Contract library.

MS Flow copy file from one sharepoint library to another
MS Flow copy file from one SharePoint library to another

This is an example of a Power Automate copy file from one SharePoint library to another.

Read Microsoft Flow or Power Automate employee onboarding

Power Automate copy file from SharePoint to SharePoint

Here we will see how to copy files from one SharePoint site to another SharePoint site using Power Automate.

Now we will create a flow that will trigger when a file is created in the Document Library of the SharePoint site and then copy that file to another SharePoint site Document library.

In Power Automate create a flow and select Automated Cloud Flow. After that select the trigger ‘When a file is created in a folder action.

power automate copy file from SharePoint to sharePoint
Power automate copy file from SharePoint to sharePoint

Now we copy the file from one SharePoint site to another SharePoint site, so click on the Next step and select Copy File action. Then Provide the current site address, file to copy, Destination site address, Destination folder, and if another file is already there field, select copy with a new name.

Microsoft Flow copy file from SharePoint to sharePoint
Microsoft Flow copy file from SharePoint to sharePoint

Now click on Save and to run the flow, create or upload a file in the SharePoint library.

MS Flow copy file from SharePoint to sharePoint

Now go to the destination SharePoint site and you can see the file in the Document library.

How MS Flow copy file from SharePoint to sharePoint
How MS Flow copy file from SharePoint to sharePoint

This is an example of a Power Automate copy file from SharePoint to SharePoint.

Read Convert SharePoint list item to PDF using Flow or Power Automate

Power automate copy file from network drive to SharePoint

Here we will see how to copy files from Network drive/Shared Drive to SharePoint Library.

So now we will create a flow that will copy the file from the local desktop folder to the SharePoint library.

In Power Automate, select the trigger ‘When a File is created (Properties Only)-File action. Now to get the data from the local shared drive/ Network drive, we need configuration. To provide the below data:

  • Connection Name: Name of the connection
  • Root Folder: The folder path of the local network drive.
  • Authentication type: Windows
  • Username: In username provide machine name/ Administrator name(personal) or domain/ username(organisation).
  • Password: provide the password
  • Gateway: choose the gateway else install the gateway.

Once you configure the connection, click on Create.

Power Automate copy file from SharePoint to SharePoint
Power Automate copy file from SharePoint to SharePoint

Then provide the root folder by clicking on the folder icon.

How power automate copy file from network drive to sharepoint

Now we will get the file content, so click on the Next step and select ‘Get File content -File system’ action. Then provide the File from the dynamic content and click on the Show Advanced option then in Infer Content type field select Yes.

How Microsoft Flow copy file from network drive to sharepoint
How Microsoft Flow copy file from network drive to sharepoint

Now we will create file in the SharePoint library, so click on the Next step and select ‘Create File-SharePoint Online’ action. Then provide the sit address, folder path, file name, and File content from the dynamic content.

How MS Flow copy file from network drive to sharepoint
How MS Flow copy file from network drive to sharepoint

Now click on Save and to run the flow create a file in the local network drive, so here we have created in the Weekly report.

How to copy file from network drive to sharepoint using MS Flow
How to copy file from network drive to sharepoint using MS Flow

Next, we can see the file get created in the Share Point document library.

How to copy file from network drive to sharepoint using Microsoft Flow
How to copy file from network drive to sharepoint using Microsoft Flow

This is an example of a Power Automate copy file from SharePoint to SharePoint.

Read Power Automate Create a CSV Table

Power Automate copy file from a shared drive to SharePoint

Here we will see how to copy files from one folder to another using Power Automate.

Now we will create a flow in which copy file from a local Shared drive to the SharePoint library.

In Power Automate, select the Manually triggered flow, then click on the Next step.

Power Automate copy file from a shared drive to SharePoint
Power Automate copy file from a shared drive to SharePoint

Now we will retrieve the file from the local Shared drive, so select ‘List Files in Folder – File system’, then provide the root folder.

How Power Automate copy file from a shared drive to SharePoint
How Power Automate copy file from a shared drive to SharePoint

Next, we will get the file content, so click on the Next step and select ‘Get File content using path– File system’ action. Then provide the file path from the dynamic content and it will automatically add the Apply to each action.

How to copy file from shared drive to sharepoint using Power Automate
How to copy file from shared drive to sharepoint using Power Automate

Next, we will create a file in the SharePoint library, so click on the Next step inside Apply to each action and select create File action- SharePoint Online. Then provide the site address, folder path, file name, and file content from the dynamic content.

How to copy file from shared drive to sharepoint using MS flow
How to copy file from shared drive to sharepoint using MS flow

Now click on Save and run the flow manually, as our local shared drive contains one file.

MS flow copy file from shared drive to sharepoint
MS flow copy file from shared drive to sharepoint

Now the flow will create the file in the SharePoint document library.

Power Automate  copy file from shared drive to sharepoint
Power Automate copy file from shared drive to sharepoint

This is an example of a Power Automate copy file from a shared drive to SharePoint.

Read How to update SharePoint Multiselect column in Power Automate

Power Automate copy file from SharePoint to local drive

Here we will see how to copy files from SharePoint to local drive using Power automate.

Now we will create a flow, in which copy files from the SharePoint library to local drive using Power Automate.

In Power Automate, select the Automated cloud flow, and then select the trigger ‘When a file is created(properties only)-SharePoint Online’, then provide the site address and Library name.

power automate copy file from sharePoint to local drive
power automate copy file from sharePoint to local drive

Now we will get the file content, so click on the Next step and select ‘Get file content using path– SharePoint’, then provide the site address and full path from the dynamic content.

Microsoft flow copy file from sharePoint to local drive
Microsoft flow copy file from sharePoint to local drive

At last, we will create file in the local drive, so click on the Next step and select ‘create file-File system’ action. Then provide the folder path, file name, and file content from the dynamic content.

MS Flow copy file from sharePoint to local drive
MS Flow copy file from sharePoint to local drive

Now click on Save and to run the flow create a file in the SharePoint document library.

How MS Flow copy file from sharePoint to local drive
How MS Flow copy file from sharePoint to local drive

Now the flow will create a file in the local drive of local machine.

How Microsoft Flow copy file from sharePoint to local drive
How Microsoft Flow copy file from SharePoint to local drive

This is an example of power automate copy file from sharePoint to local drive.

Read How to create a word document from a template in Power Automate

Power automate copy file from OneDrive to a network drive

Here we will see how to copy file from Onedrive to a Network drive/Shared drive in a local machine using Power Automate.

So here we will create a flow that will copy files from OneDrive to a network drive using Power Automate.

In Power Automate, select the Manually triggered flow and then click on the Next step.

Power automate copy file from OneDrive to a network drive
Power automate copy file from OneDrive to a network drive

Now we will get all files, so select ‘List files in folder-Onedrive for business’ action, then provide the folder field.

power automate copy file from onedrive to network drive
power automate copy file from onedrive to network drive

Next, we will get file content, so click on the Next step and select ‘Get file content using path-OneDrive for business action. Then provide the File path from the dynamic content and it will automatically add the Apply to each action.

Microsoft flow copy file from onedrive to network drive
Microsoft flow copy file from onedrive to network drive

Now we will create files in the local network drive from OneDrive Business Documents. So click on the Next step and select Create file-File system action. Then provide the folder path, file name, and file content from the dynamic content.

MS flow copy file from OneDrive to network drive
MS flow copy file from OneDrive to network drive

Now click on Save and run the flow manually. In one drive library, we have two files.

How MS flow copy file from onedrive to network drive
How MS flow copy file from onedrive to network drive

Now you can see files in the local folder in the local machine.

How Microsoft flow copy file from onedrive to network drive
How Microsoft flow copy file from onedrive to network drive

This is an example of Power automate copy file from OneDrive to a network drive.

Read Power Automate Create File

Power automate copy file with new name

Here we will see how to copy files with new names using Power Automate.

Now we will copy files with new names using Power Automate from one sharePoint library to another SharePoint library.

In Power Automate select the Manually triggered flow, then click on the Next step.

Power automate copy file with new name
Power automate copy file with new name

Now we will get the files from the SharePoint Folder, so click on the Next step and select Get Files(properties only) action. Then provide the site address library name, and top count as 100

power automate copy file with new name
power automate copy file with new name

Now we will copy file with new name, so click on the Next step and select copy file action. Then provide the current site address, File to copy, Destination site address, Destination folder, and in if another file is already there field choose copy with a new name, and apply to each action is automatically added.

power automate copy file with a new name
power automate copy file with a new name

Now click on Save and run the flow manually, you can see the result in the SharePoint library.

Microsoft flow copy file with a new name
Microsoft flow copy file with a new name

This is an example of a Power Automate copy file with new name.

Related Power Automate tutorials:

In this Power Automate tutorial, we learned power automate copy files. And also we learned about the below points:

  • Power automate copy file from one sharepoint library to another
  • Power automate copy file from SharePoint to SharePoint
  • Power automate copy file from network drive to SharePoint
  • Power automate copy file from a shared drive to SharePoint
  • Power automate copy file from SharePoint to local drive
  • Power automate copy file from OneDrive to a network drive
  • Power automate copy file with new name
  • Does the option “If another file is already there” being set to “Copy file with new name” actually work for you. I have a flow I’m working on and it always fails that step, even with that setting, telling me the file already exists in the destination

  • Automate, how to copy all files in sharepoint library to another library and keep the hierarchy, the source library contains files and folders, and there are many single files over 80G, I tried many tutorials, but it didn’t work.

    • You can use Power Automate to copy SP to SP and keep the folder structure. You can also do PowerShell scripting (it is a bit more advance) but just want to let you know it can be done.

  • Thanks this is great and I would to share that also all these types of copy processes from or to SharePoint Online can be performed also with the backup/sync tools like Syncback and Gs Richcopy 360 .

  • >