Search code examples
apiftpnetsuitesuitescript

Export file from NetSuite's FileCabinet to FTP


File resides in the NetSuite file cabinet and needs to be placed on an FTP server each day.

I'm not sure how to handle this via Suitelet/RESTlet, or if it's possible - but would prefer to not use an external source/application.

My current and hopefully temporary workaround is a local scheduled task to run a script to pull files from NetSuite & upload to the FTP.


Solution

  • Netsuite doesn't interact with FTP.

    You need a bridge server of some sort that runs a web app (full blown Apache or nginx running PHP or just a simple Node service) Just get a server and install some web server/web service and POST your files to it (nlapiRequestURL with a Scheduled script). Have the web app on the bridge server send the files to the FTP server. If you are using Netsuite you can afford the cost of the bridge server.