3 Various Ways to Copy Files in Power Automate

Recently, I had a project where I needed to automate file copying between different SharePoint libraries. Instead of manually moving files around, I used Power Automate to streamline the process. With just a few steps, I created a flow that automatically copies files when specific conditions are met, saving time and reducing errors.

In this tutorial, I will explain how to copy files in Power Automate.  Additionally, I will cover:

  • Copy File Action in Power Automate
  • Copy File From One SharePoint Library to Another using Power Automate
  • Copy Files From One SharePoint Site to Another SharePoint Site using Power Automate
  • How to Copy a File with a New Name using Power Automate

Copy File Action in Power Automate

Power Automate Copy file action allows you to automatically copy a file from one location to another within the same SharePoint site, OneDrive, or between different SharePoint sites. You specify the source file location and the destination where you want the file copied. This action helps automate tasks like creating backups and archiving documents.

The Power Automate Copy file action for SharePoint requires five key parameters:

  • Current Site Address: This is the SharePoint site where the file you want to copy is located.
  • File to Copy: The file path or the specific file within the SharePoint site that you want to copy.
  • Destination Site Address: This is the SharePoint site to which you want to copy the file. It can be the same site or a different one.
  • Destination Folder: The folder in the destination SharePoint site where you want to place the copied file.
  • If another file is already there: Determines what happens if a file with the same name already exists at the destination. The options are:
    • Copy with a new name: Adds a unique identifier to the copied file’s name.
    • Fail this action: Stops the process with an error.
    • Replace: Overwrites the existing file.
    • Custom value: You can specify a different behavior based on your needs.
power automate copy file

Copy File From One SharePoint Library to Another using Power Automate

Suppose you have a requirement where a file uploaded to a “Source Documents” library in SharePoint needs to be automatically copied to an “Approved Documents” library after manager approval. The goal is to have the same file available in both libraries for reference and tracking.

For this example, I created two SharePoint document library:

copy file sharepoint power automate

Now follow the below steps:

1. Create an automated cloud flow. Give the flow name and select the trigger When a file is created (properties only).  Also, provide the Site Address and Library Name.

power automate copy files

2. Now, I will add an action, ‘Start and wait for an approval‘, which will send an email when a file is created in the SharePoint Library. Next, set the below-provided parameters:

  • Approval type: Select an approval type as “Approve/Reject – First to respond” from the drop-down.
  • Title: Enter the title field value.
  • Assigned to: Please assign the email of the person who will approve/reject the request.
  • Details: Enter the details for the requested, like below:
Dear Manager,

I hope this message finds you well.

A new document has been uploaded to the Source Documents library and requires your approval. Please review the document at your earliest convenience.

## Document Details

**Document Name**: @{triggerBody()?['{Name}']}
**Uploaded By**: @{triggerBody()?['Author/DisplayName']}
**Upload Date**: @{triggerBody()?['Created']}
**Document Link**: [Click Here](@{triggerBody()?['{Link}']})

## Actions Required

Click Approve to move the document to the Approved Documents library.
Click Reject if the document does not meet the required standards.
power automate sharepoint copy file

3. Now, we will add the Condition action to check whether the leave request is approved or Rejected.

In this Condition action, select the Outcome (from Start and wait for an approval action) value equal to Approve.

power automate copy file from sharepoint to sharepoint

4. Then, Add the copy file action inside the true section and provide the below parameters:

  • Current Site Address: The SharePoint site address where the file you want to copy is located.
  • File to Copy: provide the identifier from dynamic content when a file is created.
  • Destination Site Address: The SharePoint site to which you want to copy the file.
  • Destination Folder: Select the destination SharePoint library
  • If another file is already there: Selcte Replace, you can select as required.
how to copy files from sharepoint to sharepoint

Now click on Save and run the Flow manually. Once the flow runs, add a file to the SharePoint documents library Source Documents.

power automate download file from sharepoint

After the approver approves the request, copy the file from the SharePoint Documents library Source Documents to the SharePoint Approved Documents library.

Copy File From One SharePoint Library to Another using Power Automate

This flow ensures that only approved files are copied to the new library, while rejected files remain in the “Source Documents” library.

Copy Files From One SharePoint Site to Another SharePoint Site Using Power Automate

I have two sites for this example: ‘PowerAutomateTutorial’ and ‘PowerBI.’ I want to copy any new file added to the Documents library in the ‘PowerAutomateTutorial’ site to the Documents library in the ‘PowerBI’ site.

Now follow the below steps:

1. Create an automated cloud flow. Give the flow name and select the trigger When a file is created (properties only).  Also, provide the Site Address and Library Name.

moving files from sharepoint to sharepoint

2. Then, Add the copy file action inside the true section and provide the below parameters:

  • Current Site Address: Select the SharePoint site address, in my case PowerAutomateTutorial.
  • File to Copy: provide the identifier from dynamic content when a file is created.
  • Destination Site Address: The SharePoint site to which you want to copy the file, in my case PowerBI.
  • Destination Folder: Select the destination SharePoint library
  • If another file is already there: Selcte Replace, you can select as required.
copy document library to another sharepoint site

Now click on Save and run the Flow manually. Once the flow runs, add a file to the SharePoint documents library Documents from the PowerAutomateTutorial site.

move files from one sharepoint folder to another power automate

After the flow successfully goes to the Power BI Document library, then, you can see the file successfully copied.

How to Copy Files From One SharePoint Site to Another SharePoint Site using Power Automate

Copy File with New Name using Power Automate

I will show you how to copy a file with a new name. For this, I’m using the flow mentioned above. If you haven’t created it yet, you can do so. Then, edit the flow and select the ‘Copy file’ action. In the ‘If another file is already there’ parameter, choose ‘Copy with a new name,’ as shown in the screenshot below.

How to Copy File with New Name using Power Automate

Now, click ‘Save’ and run the flow manually. Once the flow runs, add the same file from the Power BI document library to the SharePoint documents library, which contains files from the PowerAutomateTutorial site.

How to Copy File with New Name in Power Automate

After the flow successfully goes to the Power BI Document library, you can see the file successfully copied with a different name.

copy sharepoint page to another site power automate

I explained how to automate file copying between different SharePoint libraries using Power Automate in this tutorial. The “Copy file” action allows you to quickly move files from one location to another within SharePoint or between different sites.

I also covered how to set up conditions for approval, copy files with a new name, and handle scenarios where a file with the same name already exists.

Related Power Automate tutorials:

  • 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 .

  • >

    Live Webinar: Build an IT Help Desk App using Power Apps and Power Automate

    Join this free live session and learn how to build a fully functional IT Help Desk application using Power Apps and Power Automate—step by step.

    📅 29th Apr 2026 – 10:00 AM EST | 7:30 PM IST

    Build a High-Performance Project Management Site in SharePoint Online

    User registration Power Apps canvas app

    DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

    Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

    Power Platform Tutorial FREE PDF Download

    FREE Power Platform Tutorial PDF

    Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…