Move a Document From One SharePoint Library to Another Using Flow

Big thanks to Sandy Ussia for her help with this post!

These steps will show you how to create a Flow that will move a selected document from one SharePoint library to another. If you want to move a document to a library in a different Office 365 tenant or SharePoint environment follow the same steps but make sure you change the SharePoint connection in the Copy File step.

For this solution you will need two SharePoint document libraries.

To get started navigate to the library that you want to move the document from.

Click on Create a flow from the Flow dropdown.

create a flow selected item.png

Click on more options then on Complete a custom action for the selected item.

for selected item flow

Verify the SharePoint connection and then click on the Continue button. The flow will come with a For a selected item and Get item step. Nothing needs to be changed in these steps. Click on +New Step button then on Add an Action.

New flow step action

Search for SharePoint then select Get file properties. Select the Site address and Library name of the library you want to move the document from. Click on Dynamic Content and then select ID for the ID field.

get file properties.png

Click on +New Step button then on Add an Action again. Search for SharePoint then select Get file metadata. Select the Site address. Click on Dynamic Content and then select Identifier for the File Identifier field. 

get file metadata.png

Click on +New Step button then on Add an Action again. Search for SharePoint then select Copy File. Select the Site address for the library you want to move the document to. Click on Dynamic Content and then select Path for the Source File Path.  For the Destination File Path field Type in /LibraryName/ then select Display Name from Dynamic content. The Overwrite Flag decides whether the file will overwrite a document with the same file name.

copy a file.png

Click on Save Flow

save flow

To test the Flow navigate back to the original library and select an item. Click on the Flow dropdown and click on the name of the Flow you created. Click on Run Flow.

select flow

5 responses to “Move a Document From One SharePoint Library to Another Using Flow

  1. Nice flow.
    I’m using some Flow like,
    – Copy a file from SharePoint to Box,
    – Copy a file from SharePoint to OneDrive,
    For security reason, each tenant perdition is different.
    like SharePoint and Box allow different company’s members.

    Like

  2. Thanks for the clear write-up 👍. Does this Flow move the version history and metadata of the file?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s