다음을 통해 공유


Office 365 Microsoft Flow: Copy files from SharePoint Online account or folder to other

Here we will discuss how we can use Microsoft Flow Copy files from one SharePoint Online account or folder to another. 

If you are new to Flow you can check out the below posts:

To work with the Flow template: Login to the Microsoft Flow Official site.

Then go to the template section and search for "Copy files from one SharePoint Online account or folder to another" Flow template.

https://www.enjoysharepoint.com/wp-content/uploads/2018/07/microsoft-flow-copy-files-from-one-sharepoint-online-account-or-folder-to-another.png

Then click on Use this template button like below:

https://www.enjoysharepoint.com/wp-content/uploads/2018/07/microsoft-flow-copy-files-from-one-sharepoint-online-account-or-folder-to-another-1.png

Then we have to give permission, once the required permissions has been given the Continue button will enable. Click on that.

https://www.enjoysharepoint.com/wp-content/uploads/2018/07/microsoft-flow-copy-files-from-one-sharepoint-online-account-or-folder-to-another-2.png

Now in the When a file is created section, give the source site URL and the document library name. You can choose the document library by clicking on the Folder icon in the text box.

Then in the Create file choose the destination site URL as well as the destination document library name. Both looks like below:

https://www.enjoysharepoint.com/wp-content/uploads/2018/07/microsoft-flow-copy-files-from-one-sharepoint-online-account-or-folder-to-another-3.png

Then click on Create flow button like below:

https://www.enjoysharepoint.com/wp-content/uploads/2018/07/microsoft-flow-copy-files-from-one-sharepoint-online-account-or-folder-to-another-4.png

Then click on Done.

Test the Flow:
Here we have created two document library in the same SharePoint online site.
MyDocumentLib1
MyDocumentLib2

Now to test the Flow, open MyDocumentLib1 and upload document(s) to the document library.

https://www.enjoysharepoint.com/wp-content/uploads/2018/07/microsoft-flow-copy-files-from-one-sharepoint-online-account-or-folder-to-another-5.png

Then automatically the document will be created in the MyDocumentLib2 library.

https://www.enjoysharepoint.com/wp-content/uploads/2018/07/microsoft-flow-copy-files-from-one-sharepoint-online-account-or-folder-to-another-6.png

Test in different sites:
We can also configure to copy document from one SharePoint online site to another SharePoint online site.

From the My Flow page click the particular workflow to edit the workflow.

Here we have changed the Create file section and have put the other site URL and the document library name like below:

https://www.enjoysharepoint.com/wp-content/uploads/2018/07/microsoft-flow-copy-files-from-one-sharepoint-online-account-or-folder-to-another-7.png

Then you click on the Update button to update the workflow.

Now if you will go to the source document library and upload another document. Here we have added MyDemoDocument-Test-2.docx.

https://www.enjoysharepoint.com/wp-content/uploads/2018/07/microsoft-flow-copy-files-from-one-sharepoint-online-account-or-folder-to-another-8.png

Now if you will visit to the destination document library which is presented in another site, you can see the document will be created like below:

https://www.enjoysharepoint.com/wp-content/uploads/2018/07/microsoft-flow-copy-files-from-one-sharepoint-online-account-or-folder-to-another-9.png