Downloading Files from FTP and Doing Something With Them In D365FO
Although D365FO is now thoroughly modern and web based, with all the good things that entails, we still have to interface with some less modern systems. Sometimes those systems are literally older than we are. There are some middleware solutions that can help bridge the gap but we have quite a few tools in D365FO that can help us. Let's talk about FTP for a bit. The tried and true battle horse of Odin himself, this is never going to go away, ever. So, let's see what we can do from inside D365FO with no C# in play; just some standard tools available from x++. Consider the very simple example: using System.Net; class AAX_FTPDownloadSimple { public static void main(Args args) { System.Net.WebClient webClient = new System.Net.WebClient(); webClient.Credentials = new NetworkCredential("userName", "password"); webClient.DownloadFile(" ftp://nadummy.sharefileftp.com/test/test.txt ", @"C:\temp\test.txt");