NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Department → Insert record

AI-generated

Summary

Creates a new department record in NetSuite.

Inputs

  • name (required) — Enter a name for this department. The name you enter here shows in lists of departments on records and transactions. The name can be alphanumeric. The maximum number of characters is 60.
  • isInactive — Check this box to inactivate this department record. Inactive departments do not show in lists of departments on records and transactions.
  • externalId — External identifier for the department record.
  • fullName — Full name for the department.
  • includeChildren — Check the Include Children box to associate the department with all the sub-subsidiaries associated with each subsidiary selected in the Subsidiary field.
  • parent — Parent department, specified by internal or external identifier.
  • subsidiary — Subsidiary associated with the department, specified by internal or external identifier.
  • isDebugMode — Whether to include full request and response info in the output.
  • authMethod — Authentication method for the request.
  • X-NetSuite-Idempotency-Key — A user-defined unique idempotency key that is applied to every asynchronous request to ensure that the request is executed only once. Use UUID in string format as defined by RFC 4122.
  • X-NetSuite-PropertyNameValidation — Sets the strictness of property name validation.
  • X-NetSuite-PropertyValueValidation — Sets the strictness of property value validation.
  • additionalFields — Additional fields for the department record, including class translation and locale settings.
  • customFields — List of custom fields to set on the department record.

Output shape

The created department record's internal identifier and response metadata; full request and response details when isDebugMode is enabled.

The operation performs a POST /department request. Authentication is handled via the selected authMethod (OAuth1 or OAuth2). Idempotency keys prevent duplicate executions when set.

Links

Discussion