NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Email Template → Update record

AI-generated

Summary

Patch an existing NetSuite email template record with new values.

Inputs

  • id (required) — Internal numeric identifier of the email template to update.
  • isDebugMode — Include raw request and response data in the output.
  • additionalFields — Set of standard template properties such as subject, content, name, inactive status, company footer options, and header/footer settings. Each field can be omitted to leave the existing value unchanged.
  • customFields — List of custom field name–value pairs defined on the Email Template record. Each entry specifies the field name and its new value, supporting boolean, dateTime, multiSelect, number, select, and string types.

Output shape

Returns the patched Email Template record as returned by NetSuite; if Debug Mode is enabled, returns an object containing the full HTTP request and response alongside the record data.

Only fields supplied in the input are sent; unspecified fields are not modified. The output contains the NetSuite response body or raw debugging information.

Examples

Example 1: Update the subject line of a template

Set id to the template’s internal ID and the additionalFields.subject field to the new text; leave other fields empty.

Example 2: Enable company address in email footer

Set id to the template’s internal ID and set additionalFields.addCompanyAddress to true.

Example 3: Add a custom label to the template

Set id, include a customField with fieldName 'custtmpl_label' and value 'Holiday Sale' in customFields.

Discussion