cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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

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
Highlighted
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

Highlighted
Helper I
Helper I

Re: Moving Files Between 2 FTP's

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

 

Capture.PNG

Highlighted
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

Highlighted
Community Support
Community Support

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

Highlighted
Helper I
Helper I

Re: Moving Files Between 2 FTP's

This worked perfectly. Thanks!!

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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
Top Kudoed Authors
Users online (12,930)