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.
Hi, any possibility to sending me this file. The folder is not found in the link zip folder. thank you.
Hi, is the FTPManagement.ZIP still around. I'm getting folder not found. thanks
Yes you need to have the .net framework installed. and the dll need to be on service tier.
Thanks for this nice solution!
Is it necessary to Register the WinSCPnet.dll, or Setup in the .NET Framework?
I'm always getting the error that the .NET Instance can't be loaded.
I can compile the codeunit but i can't run it...
Thanks. Would have loved this one a few years ago. The "traditional" way of using windows script files required 3-4 times as many lines of code and time to do.