Modules

filter

 

Objects/Functions

module (N/http)

SuiteScript 2.0

ServerResponse.write(options)

{ServerResponse}.write({output: {string*}})

N/http 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/http Module
Parent Object: http.ServerResponse
Sibling Object Members: ServerResponse Object Members
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_4316382571.html