cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

How to move file from one folder to other folder in document library in sharepoint using flow.

I see there is a 'copy file' action in SharePoint to use, however I do not understand where to get the 'path to file source'?

 

Thanks, 

Taylor

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: How to move file from one folder to other folder in document library in sharepoint using flow.

Hi @ THayo,

 

Do you want to copy all files from folderA to folderB or copy the file to folderB when a file is created in folderA?

 

If you want to copy the file to folderB when a file is created in folderA, you could create a flow as screenshots below:

1.png

You could choose the “File path” dynamic content of the trigger in the “Soulrce File Path” field, and you could refer to my screenshots to fill in the “DestinationFile Path” field.

 

The flow would run successfully as below:

 2.png

 

 

You could also use action “create file” of “Sharepoint” Connector to create a flow as below:

3.png

You could select the file path in the “Folder Path” field, choose the “File name” and “File Content” dynamic content of the trigger in the input field.

The flow would run successfully as below to copy the file to FolderB:

4.png

 

 

If you want to copy all files from folderA to folderB, you could create a flow as screenshots below:

5.png

The flow would run successfully as below to copy all files from FolderA to FolderB:

 6.png

 

 

 

 

Regards,
Alice Zhang

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: How to move file from one folder to other folder in document library in sharepoint using flow.

Hi @ THayo,

 

Do you want to copy all files from folderA to folderB or copy the file to folderB when a file is created in folderA?

 

If you want to copy the file to folderB when a file is created in folderA, you could create a flow as screenshots below:

1.png

You could choose the “File path” dynamic content of the trigger in the “Soulrce File Path” field, and you could refer to my screenshots to fill in the “DestinationFile Path” field.

 

The flow would run successfully as below:

 2.png

 

 

You could also use action “create file” of “Sharepoint” Connector to create a flow as below:

3.png

You could select the file path in the “Folder Path” field, choose the “File name” and “File Content” dynamic content of the trigger in the input field.

The flow would run successfully as below to copy the file to FolderB:

4.png

 

 

If you want to copy all files from folderA to folderB, you could create a flow as screenshots below:

5.png

The flow would run successfully as below to copy all files from FolderA to FolderB:

 6.png

 

 

 

 

Regards,
Alice Zhang

View solution in original post

Highlighted
New Member

Re: How to move file from one folder to other folder in document library in sharepoint using flow.

It worked, Thank you so much for the help!

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (8,590)