NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Customer Message → Insert or update record

AI-generated

Summary

Updates an existing customer message or creates a new one via NetSuite REST API PUT /customerMessage/{id}. Required: id. Supports full additionalFields collection and customFields.

Inputs

  • id (required) — External identifier of the customer message record.
  • isDebugMode — Whether to include full request and response info in the output. Default: false.
  • authMethod — Authentication method to use for the API request. Options: OAuth1 (default), OAuth2.
  • additionalFields — Flat collection of customer message fields. Supported entries: name (string), externalId (string), isInactive (boolean), id (string/internal ID), description (string), Prefer (options: or respond-asc), refName (string), replace (comma-delimited sublist names), replaceSelectedFields (boolean), X-NetSuite-Idempotency-Key (string), X-NetSuite-PropertyNameValidation (Error/Warning/Ignore), X-NetSuite-PropertyValueValidation (Error/Warning/Ignore).
  • customFields — Fixed collection of custom fields. Each entry requires fieldName (from loaded custom fields list) and fieldType (boolean, dateTime, multiSelect, number, or string). Value type adjusts per fieldType. multipleValues: true.

Output shape

NetSuite customer message record response containing internal ID, external ID, and all updated/created field values.

Operation maps to PUT /customerMessage/{id}. Authentication defaults to OAuth1; OAuth2 available. Debug mode logs full request/response. additionalFields and customFields populate the request body per NetSuite schema.

Links

Discussion