NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Location → Insert record

AI-generated

Summary

Insert a new Location record into NetSuite by specifying Location details and optional custom fields.

Inputs

  • isDebugMode — Whether to include full request and response info in the output.
  • additionalFields — Optional additional properties for the Location, such as name, internal ID, addresses, subsidiaries, and other Location-specific details.
  • customFields — Optional list of custom fields to set on the Location record, each with a field name, type, and value.

Output shape

a single JSON object representing the created Location record, including any response metadata if debug mode is enabled

The output contains the result of the insert operation; if Debug Mode is enabled, detailed request and response info is included. Custom fields are supported via separate input. The operation calls the NetSuite SuiteTalk REST API for Location creation.

Examples

Example 1: Create a new Location with a name and address

Set 'name' in Additional Fields, provide address details under 'mainAddress', and optionally set 'isDebugMode' to true to include request-response data in the output.

Discussion