NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Department → Get record

AI-generated

Summary

Retrieve a Department record by internal identifier from NetSuite.

Inputs

  • id (required) — Internal identifier.
  • isDebugMode — Whether to include full request and response info in the output
  • authMethod — Authentication method for the request.
  • additionalFields — Select additional fields and sub-resources to include in the response.
  • simpleEnumFormat — Set to true to return enumeration values in a format that only shows the internal ID value.
  • X-NetSuite-Idempotency-Key — A user-defined unique idempotency key applied to asynchronous requests to ensure execution only once.

Output shape

The retrieved Department record object. Field selection and sub-resource expansion are determined by the additionalFields parameter. Enumeration values are formatted per simpleEnumFormat setting.

Debug mode includes full request and response details in the output. Asynchronous execution is controlled via the Prefer header (set through additionalFields.Prefer). Idempotency keys prevent duplicate asynchronous requests.

Examples

Example 1: Fetch a single Department record by ID with selected fields and expansion.

id: 123, additionalFields: { fields: 'name,parent', expandSubResources: true }

Links

Discussion