Moving Files in NAV with FTP

There are many projects in NAV where integration with FTP is a requirement.  I have seen many post on how to integrate with ftp.  Some involve write a .bat file and executing the file, but they are not good solutions.  The following solution is written in NAV 2016 using dotnet assembly WinSCP.  WinSCP is an open source free SFTP client and FTP client for Windows.  You are welcome to give them a donation if you like.  You'll need to download the .net assembly and put in the addin folder.


In My solution I've created a job on job queue with new fields.

  Here is the screenshot of the codeunit. 





Bellow is the fob.