Modules

filter

 

Objects/Functions

module (N/render)

SuiteScript 2.0

render.DataSource

render.DataSource.{|JSON,OBJECT,XML_DOC,XML_STRING|}

N/render Module
render.DataSource
Enum Description: Holds the string values for supported data source types. Use this enum to set the options.format parameter.
Supported Script Types: Server-side scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/render Module
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=render.DataSource

Example:

// Code Example 1
//Add additional code
//...
renderer.addCustomDataSource({
format: render.DataSource.JSON,
alias: "JSON_STR",
data: jsonString
});
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4619588793.html