Connection to FTP Server from Dynamics NAV

SuperSage77SuperSage77 Member Posts: 101
Hello everybody!

I want download Files from a FTP Server directly into Dynamics NAV via a XMLPort !

Is it possible.
Wich automation object must I use?

Thanks for a response.

Rudy

Comments

  • ta5ta5 Member Posts: 1,164
    Hi Rudy

    I would try one of this 2 options:

    1: Download the files first via Bat-File or something else, then use xml Port with local file as usual.
    2: Use a freeware tool (maybe its possible now in newer Windows Server versions without additional software) to map the ftp location to a drive letter. Then use xml port like it was a local file.

    Hope this helps
    Thomas
  • matttraxmatttrax Member Posts: 2,309
    If your computer can connect to the FTP then you can specify that server as the filename for the XMLPort.

    Normal server:
    \\server\drive$\path\filename

    I think an FTP server would just be:
    \\ftpserver\filename

    I've only done this with dataports and standard servers, never had the opportunity to try with an XMLPort and FTP.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    Whilst I agree with the suggestions above, I would make one slight change. Before having the XML connect to the file, move it to a local folder and work on the local copy. If you do this once a day its probably OK, but it its a routine that runs very often, then you may find yourself getting into file locking problems.

    by copying the files local you eliminate a lot of these issues.
    David Singleton
Sign In or Register to comment.