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.

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.

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.

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

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

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

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