Live Developer Training: next batch coming soon. Be the first to know.Live training: next batch soonJoin the waitlist →Join →

Power Automate Copy File When a File is Created or Modified in SharePoint

In this Power Automate tutorial, I will show you how to copy a file when it is created or modified in SharePoint using Power Automate. Additionally, I will tell you how to copy a file from a SharePoint library folder using Power Automate.

Power Automate Copy File When a File is Created or Modified in SharePoint

Imagine you have two SharePoint document libraries, Project Files and Archived Files. Whenever a file is created or modified in the Project Files library, it should automatically be copied to the Archived Files library for backup purposes.

Copy File When File Created or Modified in SharePoint using 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 or modified (properties only). Also, provide the Site Address and Library Name.

Power Automate Copy File When File Created or Modified in SharePoint

2. Add the Copy file action and provide the parameters below to copy the file from the Project Files library to the Archived Files library:

  • 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 creating a file.
  • 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, Copy with a new name.
Copy File When File Created or Modified in SharePoint in power Automate

Now, click Save and run the flow manually. Once the flow runs, add a file in the Project Files document library.

Copy File When File Created in SharePoint using power Automate

After the flow successfully goes to the Archived Files Document library, you can see the file successfully copied.

Copy File When File Created in SharePoint in power Automate

Then, with another use, go to the Project Files document library and modify the Excel file.

Copy File When File Modified in SharePoint in power Automate

Afterward, when you go to the Archived Files Document library, you can see the file successfully copied with a different name.