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.

View solution in original post

This worked perfectly. Thanks!!

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,577)