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

Moving Files Between 2 FTP's

Below is my current Flow. When a new file is added to the FTP folder, Flow takes the file and copies it to another FTP.

 

What I would like to add is a step that moves the file on the first FTP to a "Processed" folder.

 

Any advice would be greatly appreciated.

 

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Moving Files Between 2 FTP's

 

Hi @gm355 ,

 

Following @Jay-Encodian 's suggestion, you seem to consider adding another Create file action under Create file, with the Folder path configured as the first FTP Processed folder.

Delete the Copy file action. When you configure the Delete file action, the File field needs to be configured with the File id output when a file is added or modified.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Super User
Super User

Re: Moving Files Between 2 FTP's

Hey @gm355 

I don't have an SFTP connection to provide a screen shot... however I think you need to do the following.

After you have created the file on the destination SFTP... simply add two further actions:

  • Copy File: To copy the source file to the 'processed' folder
  • Delete File: To delete the original file which triggered the Flow

HTH

Jay

gm355
Level: Powered On

Re: Moving Files Between 2 FTP's

Thanks @Jay-Encodian . So like this? What do I put as the Destination file path?

 

Capture.PNG

Super User
Super User

Re: Moving Files Between 2 FTP's

Hi @gm355 

You need to put the location of the 'Processed' Folder.

Looking at the delete file action... you'll need to check the value passed in. I'd expect the filename alone will not work... you may need to append the filepath and filename variables from the trigger action... there my well be a property on the trigger action which fully identifies the file.

HTH

Jay

Community Support Team
Community Support Team

Re: Moving Files Between 2 FTP's

 

Hi @gm355 ,

 

Following @Jay-Encodian 's suggestion, you seem to consider adding another Create file action under Create file, with the Folder path configured as the first FTP Processed folder.

Delete the Copy file action. When you configure the Delete file action, the File field needs to be configured with the File id output when a file is added or modified.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

gm355
Level: Powered On

Re: Moving Files Between 2 FTP's

This worked perfectly. Thanks!!

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,393)