NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Sales Role → Get record

AI-generated

Summary

Retrieve a sales role record from NetSuite by its internal identifier, optionally customizing the returned fields and behavior.

Inputs

  • Id (required) — The internal identifier of the sales role record to retrieve.
  • Debug Mode — Set to true to include full request and response details in the output.
  • Additional Fields — Optional parameters to expand sub-resources, specify returned fields, request asynchronous execution, format enumeration values in simplified form, or specify an idempotency key for async requests.

Output shape

a single sales role record object with properties corresponding to the requested fields, or full request/response info if Debug Mode is enabled

The response includes only the fields specified if 'Fields' is set; setting 'Expand Sub Resources' retrieves all sublists and subrecords. Using 'Prefer' with 'respond-async' executes asynchronously, requiring use of the idempotency key. Enumeration fields can be returned in simplified internal ID format if selected.

Examples

Example 1: Get sales role with ID 123, returning default fields

Set 'Id' to 123; leave optional fields at defaults.

Example 2: Get sales role with ID 123 expanding all sub-resources and returning only selected fields

Set 'Id' to 123; set 'Expand Sub Resources' to true; specify desired 'Fields' string.

Example 3: Get sales role with debug information for troubleshooting

Set 'Id' to the record ID; enable 'Debug Mode' to true.

Discussion