Modules
Objects/Functions
SuiteScript 2.0
{ServerResponse}.write({output: {string*}})
N/https Module
ServerResponse.write()
Method Description:
Writes information (text, xml, html) to the response.
This method accepts only strings. To pass in a file, you can use ServerResponse.writeFile(options).
Returns:
void
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/https Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=ServerResponse.write(options)
Example:
// Code Example 1
// Add additional code
//...
serverResponse.write({
output: 'Hello World'
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4567651956.html