Use different approaches to automate communications in SuiteScript. Flashcards
What two modules are automatically loaded when using the N/https module?
The N/crypto and N/encode modules
SFTP transfers to and from NetSuite must originate from what?
They must originate from a SuiteScript
The N/https module can be used for communicating between SuiteScript scripts, RESTlets, and SuiteTalk REST APIs without having to do what?
You can use the N/https module to communicate between SuiteScript scripts, RESTlets, and SuiteTalk REST APIs without having to reauthenticate, using the https.requestRestlet(options) and https.requestSuiteTalkRest(options) methods.
True or False?
We can use the N/https module to encode binary values
True
What script types can utilise the N/email module?
Client or Server?
Both Server and Client scripts
What is the purpose of the N/email module?
Send regular, bulk, and campaign emails from NetSuite
True or False?
The N/http module does not accept HTTPS protocols.
True
True or False?
Only client scripts can make cross-domain HTTP requests using NetSuite servers as proxies
True
True or False?
Both client and server side scripts can receive requests via the N/http module
False.
Only server scripts can receive requests
What functionality does the N/https module provide?
It includes all the functionality of N/http, but does not accept HTTP protocol
What script types can utilise the N/http module?
Client or Server?
You can make HTTP calls from server or client scripts
The use of promises is only possible in what kind of script?
Client or Server?
In SuiteScript 2.x, all client scripts support the use of promises, and starting with NetSuite 2021.1, a subset of server scripts also support the use of promises.
We must use what kind of key in order to establish SFTP connections?
We must use SSH keys.
True or False?
NetSuite host their own SFTP servers for you to use freely with your license.
False.
SFTP servers are not provided by NetSuite, you must use SFTP servers that are hosted by your organisation or a third party
What is the purpose of the N/sftp module?
It allows you to manage folders and upload or download files from external SSH file transfer servers
N/sftp can only be used in which type of script?
Client or server?
N/sftp can only be used in server scripts