NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Partner → Insert or update record

AI-generated

Summary

Insert or update a Partner record in NetSuite by specifying the record's external Id and various optional fields including address book, contact info, categories, custom fields, and other partner attributes.

Inputs

  • id (required) — External identifier of the Partner record to insert or update.
  • additionalFields — Optional Partner fields to include such as address book entries, company name, contact info, partner code, status flags, and other standard attributes.
  • customFields — Custom fields for the Partner record, allowing multi-valued entries and type-specific values (boolean, dateTime, number, select, multiSelect, or string).
  • isDebugMode — Include full request and response details in the operation output when enabled.

Output shape

a single JSON object representing the Partner record after insertion or update

The output includes the updated or inserted Partner record data. If debug mode is enabled, full request and response information is also included. The operation requires the Partner's external Id to identify the record to update or to create it if not present.

Examples

Example 1: Update or insert a Partner record

Set the 'id' to the Partner's external identifier and specify optional fields such as 'companyName', 'email', 'phone', and address book details in 'additionalFields'. Optionally include custom fields in 'customFields'. Enable 'Debug Mode' to get detailed API request/response info.

Discussion