NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Job → Insert or update record

AI-generated

Summary

Insert or update a Job record in NetSuite by specifying the record ID and providing any desired fields or custom fields to set or modify.

Inputs

  • id (required) — The unique identifier of the Job record to insert or update.
  • Additional Fields — Optional collection of fields to set on the Job record, including properties such as name, dates, revenue estimates, status, and address book entries.
  • Custom Fields — Optional list of custom fields with their names, types, and values to include in the Job record.
  • Replace — Comma-separated list of sublists to replace entirely in the update.
  • Replace Selected Fields — Boolean indicating whether fields to be deleted in the update must be included in the Replace parameter.
  • Prefer — Option to specify server behavior, such as 'respond-async' for asynchronous execution.
  • Debug Mode — Boolean flag to include full request and response details in output.

Output shape

a JSON object representing the inserted or updated Job record returned by NetSuite's REST API, including any provided fields and identifiers.

If Debug Mode is enabled, the output includes detailed request and response information for troubleshooting. The operation expects the 'id' path parameter to identify the Job. The operation uses HTTP PUT semantics to insert or replace the Job record at the given ID. Custom and additional fields are flattened and validated according to the NetSuite schema prior to the request. Asynchronous execution can be requested via the 'Prefer' parameter, which will respond with a status indicating the request acceptance rather than immediate completion.

Examples

Example 1: Insert a new Job record with a specified ID, name, start date, and estimated revenue.

Set 'id' to a new unique identifier string, fill Additional Fields with 'Campaign Name', 'Start Date', and 'Estimated Revenue', then execute.

Example 2: Update an existing Job record to mark it inactive and add a comment.

Set 'id' to the existing Job's ID, set 'Additional Fields' 'Inactive' to true and 'Comments' to the desired text, then execute.

Links

Discussion