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 II
Super User II

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 II
Super User II

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,679)