Modules
Objects/Functions
SuiteScript 2.0
{render}.transaction({entityId: {number*},printMode: {enum},formId: {number},inCustLocale: {boolean}})
N/render Module
render.transaction()
Method Description:
Use this method to create a PDF or HTML object of a transaction.
File size is limited to 10MB.
If the Advanced PDF/HTML Templates feature is enabled, you can associate an advanced template with the custom form saved for a transaction. The advanced template is used to format the printed transaction. For details about this feature, see Advanced PDF/HTML Templates
Returns:
file.File that contains a PDF or HTML document
Supported Script Types:
Server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
10 units
Module:
N/render Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=render.transaction(options)
Example:
// Code Example 1
//Add additional code
//...
var transactionFile = render.transaction({
entityId: 23,
printMode: render.PrintMode.HTML,
inCustLocale: true
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_452452331542.html