NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Sales Role → Insert record

AI-generated

Summary

Insert a new Sales Role record into NetSuite with specified fields and custom fields, optionally including advanced preferences and idempotency key for asynchronous requests.

Inputs

  • Authentication Method: Choose between OAuth1 and OAuth2 for authentication. — Select the OAuth authentication method to authorize the request.
  • Additional Fields: Provide optional fields for the Sales Role such as Description, External ID, Internal ID, Inactive status, Name, Sales Rep flag, Reference Name, Replace sublists, and request-specific headers for asynchronous processing and validation strictness. — Set various optional properties and headers to customize the Sales Role record and request behavior.
  • Custom Fields: Add one or more custom fields specifying their names, types, and values to include additional custom data on the Sales Role record. — Define custom fields with type-specific values to attach to the inserted Sales Role record.
  • Debug Mode: Enable to include full HTTP request and response details in the output for troubleshooting. — Toggle detailed debug information output.

Output shape

a single record representing the created Sales Role returned from NetSuite's API

The output may include full debug information if Debug Mode is enabled. Asynchronous request preferences can be set causing response headers related to request status. Custom and additional fields populate the created record accordingly.

Examples

Example 1: Insert a Sales Role with a name, description, sales rep flag, and a custom string field.

Set 'name' and 'description' in Additional Fields, 'isSalesRep' to true, and include custom field with string value.

Example 2: Insert a Sales Role asynchronously with an idempotency key to prevent duplicate execution.

Set 'Prefer' to 'respond-async' and supply a UUID string as 'X-NetSuite-Idempotency-Key' in Additional Fields.

Links

Discussion