cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
THayo
Level: Powered On

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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

THayo
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,952)