NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Contact Role → Get record

AI-generated

Summary

Retrieve a single NetSuite Contact Role record by its internal ID, optionally filtering returned fields, expanding sub-resources, or requesting asynchronous processing.

Inputs

  • Debug Mode — Include full HTTP request and response data in the output for troubleshooting.
  • Id (required) — The internal identifier of the Contact Role to retrieve.
  • Expand Sub Resources — Automatically expand all sublists, sublist lines, and subrecords on the record.
  • Fields — Comma‑separated list of field or sublist names to return; only these are included in the response.
  • Prefer — Client‑requested server behaviour. Set to "respond-async" to execute the request asynchronously.
  • Simple Enum Format — Return enumeration values as their internal ID string only, omitting descriptive labels.
  • X - Net Suite - Idempotency - Key — Unique UUID for idempotent asynchronous requests to prevent duplicate execution.

Output shape

a single record (JSON object) representing the requested Contact Role

If Debug Mode is enabled the main output will include request and response objects with HTTP details. When Prefer is set to "respond-async" the output contains information about the asynchronous job and may not include the record data until completion.

Examples

Example 1: Retrieve a contact role by ID

Id: 12345

Example 2: Retrieve specific fields from a contact role

Id: 12345, Fields: 'roleName, internalId'

Example 3: Asynchronously retrieve a contact role with idempotency

Id: 12345, Prefer: respond-async, X - Net Suite - Idempotency - Key: 'e7c0b1b2-3d4f-5a6b-7c8d-9e0f11223344'

Discussion