Modules
Objects/Functions
SuiteScript 2.0
{TemplateRenderer}.setTemplateById({id: {number*}})
N/render Module
TemplateRenderer.setTemplateById()
Method Description:
Sets the template using the internal ID
Returns:
Void
Supported Script Types:
Server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/render Module
Since:
2016.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=TemplateRenderer.setTemplateById(options)
Example:
// Code Example 1
//Add additional code
//...
var renderer = render.create();
renderer.setTemplateById(3);
var xml = renderer.renderAsString();
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4528552999.html