NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Contact Role → Insert or update record

AI-generated

Summary

Create or update a NetSuite Contact Role record identified by an external id.

Inputs

  • isDebugMode — Include full request and response details in the node output.
  • id (required) — External identifier for the Contact Role. Used for the REST endpoint /contactRole/{id}.
  • additionalFields — Optional collection of standard Contact Role fields such as name, description, externalId, isInactive, lastModifiedDate, Prefer, refName, replace, replaceSelectedFields, X-NetSuite-Idempotency-Key, X-NetSuite-PropertyNameValidation, X-NetSuite-PropertyValueValidation, and id (internal). These map directly to the NetSuite REST API payload.
  • customFields — Optional list of custom fields for the record. Each entry specifies fieldName, fieldType (boolean, dateTime, multiSelect, number, select, string), and a corresponding value (boolean, date, array of items, number, or string).

Output shape

a single record representing the created or updated Contact Role, including its internal and external identifiers, standard fields, and any custom fields that were set.

The response contains the full payload returned by NetSuite; no pagination is involved for this operation.

Examples

Example 1: Insert a new Contact Role

id: "CR001"
additionalFields: { name: "Sales", description: "Sales role" }

Example 2: Update an existing Contact Role and set a custom field

id: "CR001"
additionalFields: { name: "Updated Sales" }
customFields: [{ fieldName: "customField1", fieldType: "string", value: "CustomValue" }]

Example 3: Perform an asynchronous update with prefer header

id: "CR001"
additionalFields: { Prefer: "respond-async" }

Discussion