NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Sales Role → Insert or update record

AI-generated

Summary

Insert or update a Sales Role record in NetSuite identified by its external Id, with support for standard and custom fields.

Inputs

  • Id (required) — The external identifier of the Sales Role record to insert or update.
  • Additional Fields — Optional standard fields for the Sales Role such as Description, External ID, Inactive status, Internal ID, name, Sales Rep flag, Reference Name, and various NetSuite-specific headers and options.
  • Custom Fields — A collection of custom fields to set on the Sales Role record, specifying field name, type, and value.
  • Debug Mode — When enabled, includes the full request and response information in the node output for troubleshooting.
  • Authentication Method — Select whether to authenticate using OAuth1 or OAuth2.

Output shape

a single record representing the created or updated Sales Role, including any returned fields and optionally debug details.

The node returns the response from NetSuite's REST API after performing a PUT request to update or insert the Sales Role identified by the provided external Id. If Debug Mode is enabled, the full HTTP request and response information is included in the output. Custom fields are supported and must be supplied with their field name, type, and corresponding value. The operation replaces or updates the Sales Role record with the given fields and identifiers, using NetSuite's REST API conventions.

Examples

Example 1: Insert or update a Sales Role with External Id and Name

Set 'Id' to the Sales Role's external Id string and provide 'name' under Additional Fields for the Sales Role name.

Example 2: Update Sales Role with custom fields and debug output

Provide 'Id' with external Id, add any custom fields under Custom Fields collection, and enable Debug Mode to output full request/response details.

Links

Discussion