javascript - Accessing FTP thorugh netsuite -


i want schedule script on netsuite upload , download txt file ftp location. able create file , store in file cabinet far can go.

i bit new , don't know if @ possible have ftp scheduled netsuite?

unfortunately, there no ftp access netsuite.

you can work around limitation scheduled script or web services however.

here previous post example code on how start scheduled script: how upload file netsuite file cabinet automatically?

  1. place csv file location publicly visible(obviously, works if it's not sensitive information! please please please don't if don't want whole world see it!)
  2. create scheduled script in netsuite. set deployment run daily, @ whatever time deem best
  3. in scheduled script, use nlapirequesturl (ns doc) file wherever placed (note there 5mb size limitation!)
  4. use nlapicreatefile (ns doc) create file
  5. use nlapisubmitfile (ns doc) submit file cabinet sample code:

    var response = nlapirequesturl('http://yourserver.yourcompany.com/somecsvfile.csv'); var csvdatainbase64 = response.getbody(); var file = nlapicreatefile('mycsv.csv', 'csv', csvdatainbase64); nlapisubmitfile(file);

there no error checking or in sample, should started.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -