N/render Module Members for SuiteScript Document Generation
The N/render module provides SuiteScript developers with tools for document generation, printing, and email management.
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
- Common SuiteScript Errors and Solutions for NetSuite
Common NetSuite script errors include INVALID_SCRIPT_DEPLOYMENT_ID and SSS_AUTHORIZATION_HEADER_NOT_ALLOWED. Learn effective solutions.
- Setting Field Values in SuiteScript for Effective Record
Learn to set field values in SuiteScript effectively, troubleshooting common errors and understanding data types.
- SuiteScript 2.1 Enhancements and API Updates in NetSuite
SuiteScript 2.1 enables execution of 2.0 scripts and supports PATCH method for enhanced API capabilities.
- Enhancements to SuiteScript User Role Context Clarification
SuiteScript updates clarify the user and role contexts for script executions, improving deployment understanding and management.
Advertising
Reach SuiteScript Professionals
Put your product in front of NetSuite experts who work with SuiteScript every day.
Sponsor This Category