Modules

filter

 

Objects/Functions

module (N/render)

SuiteScript 2.0

TemplateRenderer.addRecord(options)

{TemplateRenderer}.addRecord({templateName: {string*},record: {record.Record object*}})

N/render Module
TemplateRenderer.addRecord()
Method Description: Binds a record to a template variable.
Returns: Void
Supported Script Types: Server-side scripts For more information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/render Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=TemplateRenderer.addRecord(options)

Example:

// Code Example 1
//Add additional code
//...
var myContent = renderer.addRecord({
templateName: 'record',
record: record.load({
type: record.Type.CUSTOMER,
id: 1234
});
});
//...
//Add additional code

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