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.
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.
Now click on Save and to run the flow create a file in SharePoint Document Library.
After the copy the file from the SharePoint Documents library to the SharePoint Contract library.
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.
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.
Now click on Save and to run the flow, create or upload a file in the SharePoint library.
Now go to the destination SharePoint site and you can see the file in the Document library.
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.
Then provide the root folder by clicking on the folder icon.
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.
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.
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.
Next, we can see the file get created in the Share Point document library.
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.
Now we will retrieve the file from the local Shared drive, so select ‘List Files in Folder – File system’, then provide the root folder.
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.
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.
Now click on Save and run the flow manually, as our local shared drive contains one file.
Now the flow will create the file in the SharePoint document library.
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.
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.
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.
Now click on Save and to run the flow create a file in the SharePoint document library.
Now the flow will create a file in the local drive of local machine.
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.
Now we will get all files, so select ‘List files in folder-Onedrive for business’ action, then provide the folder field.
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.
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.
Now click on Save and run the flow manually. In one drive library, we have two files.
Now you can see files in the local folder in the local machine.
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.
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
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.
Now click on Save and run the flow manually, you can see the result in the SharePoint library.
This is an example of a Power Automate copy file with new name.
Related Power Automate tutorials:
- Power Automate Replace
- How to call a flow from another flow in Power Automate
- Power Automate Set Variable
- Power Automate wait timer
- How to move emails to folder after 30 days using Power Automate
- Power Automate update SharePoint list increment integer field
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
Bhawana Rathore is a Microsoft MVP (3 times in Office Apps & Services) and a passionate SharePoint Consultant, having around 10 years of IT experience in the industry, as well as in .Net technologies. She likes to share her technical expertise in EnjoySharePoint.com and SPGuides.com
Thanks ! Usefull !
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
Can we compare the file size of source and destination to compare if the data is copied successfully?
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 .