N/render Module Members for SuiteScript Development
The N/render module facilitates printing, PDF generation, and email creation through templates for SuiteScript applications.
TL;DR Opening
The N/render module is essential for SuiteScript developers looking to manage printing, create PDFs, design forms from templates, and generate emails using those templates. This article details the various members of the N/render module that enhance SuiteScript functionality.
What Is the N/render Module?
The N/render module in SuiteScript provides developers with capabilities for various document generation tasks such as creating PDFs or HTML forms, managing email merges, and other print-related functions. It supports server scripts and encapsulates several objects and methods critical for rendering documents.
N/render Module Members
The members of the N/render module can be categorized into objects, methods, and enums that facilitate specific functionalities.
Objects
| Name | Return Type | Description |
|---|---|---|
render.EmailMergeResult | Object | Encapsulates an email merge result. |
render.TemplateRenderer | Object | Encapsulates a template object that produces HTML and PDF forms. |
Methods
| Method | Return Type | Description |
|---|---|---|
render.bom(options) | file.File | Creates a PDF or HTML file object containing a bill of materials. |
render.create() | render.TemplateRenderer | Creates a render.TemplateRenderer object. |
render.mergeEmail(options) | render.EmailMergeResult | Creates an email merge result object. |
render.packingSlip(options) | file.File | Generates a PDF or HTML file for packing slips. |
render.transaction(options) | file.File | Creates a PDF or HTML file object for a transaction. |
render.xmlToPdf(options) | file.File | Converts XML into a PDF file using the BFO tag library. |
Enums
| Name | Type | Description |
|---|---|---|
render.DataSource | enum | Holds values for supported data source types. |
render.PrintMode | enum | Holds values for supported print output types. |
Who This Affects
Developers using SuiteScript for:
- Document generation and management
- Email merging and distribution
- Advanced template creation
Key Takeaways
- The N/render module supports advanced PDF and HTML rendering.
- Key objects like
EmailMergeResultandTemplateRendererare central to its functionality. - Various methods allow for the creation of documents like invoices, packing slips, and transactions.
Frequently Asked Questions (4)
Do I need specific permissions to use the N/render module in SuiteScript?
Can the N/render module be used for both HTML and PDF generation?
Is the N/render module compatible with all SuiteScript server scripts?
What objects are encapsulated by the N/render module for email merge operations?
Was this article helpful?
More in SuiteScript
- SuiteScript 2.1 Enhancements in NetSuite February Updates
SuiteScript 2.1 now supports async features and PATCH method. Discover the latest API and SuiteProcurement improvements.
- Scheduling Map/Reduce Script Deployments in NetSuite
Learn to schedule map/reduce script submissions, including one-time and recurring options in NetSuite.
- Binary File Support in N/https Module for SuiteScript
SuiteScript enhances capabilities with binary file support in the N/https module, allowing improved data handling in external communications.
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
