MS Flow - Copy/Move File From One Document Library To Other Library

In this article, we will learn to Copy/Move file from One document library to another library.

Recently, one of my clients needed to copy a file from one document library to another document library. Previously, I thought to go with content organizer rule as it doesn't work if I drag and drop files to drop off the library through the UI. 
 
So, I developed a flow which will copy the files from one document library and put them to a folder inside document library based on the condition.
 
Steps
 
Log in to the MS Flow using your Office 365 credential and create a flow from the blank.
 
Then select a template when a file is created.
 
MS Flow - Copy/Move File From One Document Library To Other Library
 
Add Get file properties action, as I need it to get the metadata of the file.
 
MS Flow - Copy/Move File From One Document Library To Other Library
 
Add Condition then give condition criteria based on your requirement.
 
Add copied file and provide parameter as displayed below.
 
MS Flow - Copy/Move File From One Document Library To Other Library
 
MS Flow - Copy/Move File From One Document Library To Other Library
 
After "Copy File" action and add "Delete file" action.
 
MS Flow - Copy/Move File From One Document Library To Other Library

As we can see the file is getting copied to a folder inside another document library.
 
Cheers!!