NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Email Template → Insert record

AI-generated

Summary

Create a new NetSuite email template via the REST API.

Inputs

  • isDebugMode — Include full request and response info in the output
  • additionalFields — Optional advanced settings such as subject, content, company address in footer, unsubscribe link, description, name, internal ID, script ID, external ID, media item, etc. These map directly to the NetSuite email template record fields.

Output shape

Returns the newly created email template record as a JSON object. If Debug Mode is enabled, the output also contains the raw request and response data.

When Debug Mode is disabled, only the NetSuite response body is returned. The response includes the value of all fields that were set, including any custom fields.

Examples

Example 1: Insert a simple email template

Set Resource to Email Template, Operation to Insert record. In Additional Fields set Name to "Welcome Email", Subject to "Welcome to Our Service", Content to an HTML string, and Description to "Template for new user welcomes."

Example 2: Insert template with custom fields

Set Resource to Email Template, Operation to Insert record. In Custom Fields add a custom field "marketing_opt_in" of type Boolean and set its value to true. Provide standard fields like Name and Content as needed.

Example 3: Debug mode request/response view

Enable Debug Mode, insert a template as in the first example. The output will include both the request payload sent to NetSuite and the full HTTP response, aiding troubleshooting.

Discussion