Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=sftp.Connection for more information.
N/sftp Module
sftp.Connection
Object Description:
Represents a connection to the account on the remote FTP server.
Supported Script Types:
All script types
For more information, see SuiteScript 2.0 Script Types.
Module:
N/sftp Module
Methods and Properties:
Connection Object Members
Since:
2016.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=sftp.Connection
Example:
// Code Example 1
//Add additional code ...
// establish connection to the FTP server
var objConnection = sftp.createConnection({
username: 'username',
keyId: 'custkey1',
url: 'host.somewhere.com',
directory: 'username/wheres/my/file'
hostKey: myHostKey
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4618502733.html