cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gm355
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

 

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
Jay-Encodian
Community Champion
Community Champion

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

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

 

Capture.PNG

Jay-Encodian
Community Champion
Community Champion

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

 

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.

This worked perfectly. Thanks!!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,618)