NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Competitor → Insert record

AI-generated

Summary

Create a new Competitor record in NetSuite via its REST API.

Inputs

  • isDebugMode — Include full request and response information in the output.
  • customFields — Optional collection of record‑specific custom fields, each specified with a field name, type and value.
  • additionalFields — Record fields such as name, description, externalId, isInactive, customForm, productService, strategy, strengths, weaknesses, url, X‑NetSuite headers (Idempotency Key, PropertyNameValidation, PropertyValueValidation) and other optional body fields.

Output shape

A JSON object containing the created Competitor record, including NetSuite’s internal ID and any supplied fields. If debug mode is enabled, the output additionally contains the raw request and response data.

The output mirrors the exact JSON returned by NetSuite’s REST endpoint; pagination is not applicable for insert operations.

Examples

Example 1: Insert a basic competitor record with only a name

Set "Name" to "Acme Corp" and leave all other fields empty.

Example 2: Insert with custom fields and ID that does not exist

Add a custom field "industry" (string) with value "Retail" and set "External ID" to "AC-001".

Example 3: Enable debug mode to inspect NetSuite response

Toggle "Debug Mode" to true; output will include request headers/body and response headers/body.

Discussion