-
NetSuite Tip - Uploading a file to an FTP server N/sftp
var connection = sftp.createConnection({ username: userName, passwordGuid: passGUID, url: URL, directory: '/', hostKey: hostKey }); //if you have a xml content or json content, create them as a file and upload to FTP //Module: N/file :> file var FileToUpload = file.create({ fileType: file.Type.PLAINTEXT, name: XMLfileName,…
-
SFTP Inbound will not remove files from Bank Folder for Processing
Scenario Created a standard SFTP inbound connection: Logs in to the SFTP Server, downloads the csv files from the 'Bank Folder - For Processing' into the correct NetSuite Document 'Folder ID', makes a copy of the csv files and puts them into the 'Bank Folder - Processed'. The problem is that when trying to remove the files…
-
How to upload SSH Key for SFTP Connector SuiteApp?
Hi, I have managed to generate both Private and Public keys from PuTTYgen. Then uploaded the Private Key in Setup - Company - Key. However I have two issues: The uploaded key cannot be selected from Certificate / SSH Key of Inbound Configuration tab of SFTP. The Public Key cannot be uploaded in NetSuite. As I get the…
-
What is maximum download file size in N/sftp module
Hello Gurus, I'm unable to find the maximum download size allowed in the scripts using N/sftp module. I found Connection.MAX_FILE_SIZE enum which is holding the values for the maximum file size, value: 100000000 bytes which equal to 100 megabytes. The example script given in the Answer Id: 87210 is for file uploads, what…