<ms-netsuite-rest:get-record-metadata
config-ref="Config"
doc:name="Get Record Metadata"
recordType="customer"/>
Configuring Metadata Operations
Configure the operations that retrieve schema, catalog, and system information from NetSuite: Get Record Metadata, Get Record Types Catalog, Get Select Value, Get Governance Limits, and Get Server Time.
Use these operations to discover record structures, validate field values, and synchronize with NetSuite system state. For full parameter, output, and error details, see NetSuite REST Connector Reference.
Configure the Get Record Metadata Operation
The Get Record Metadata operation retrieves the OpenAPI metadata schema for a record type, including field definitions, data types, required fields, and valid select values, by sending GET /record/v1/metadata-catalog/{recordType} with Accept: application/swagger+json. Use this metadata for validation or documentation.
To configure the Get Record Metadata operation:
-
Select the operation on the Anypoint Code Builder or Studio canvas.
-
In the General properties tab for the operation, enter these values:
-
Record Type
The NetSuite record type (for example,
customerorsalesOrder).
-
Configure the Get Record Types Catalog Operation
The Get Record Types Catalog operation retrieves the list of available record types from the metadata catalog, including standard and custom types with their internal names and labels, by sending GET /record/v1/metadata-catalog/, optionally with ?select=type. When Select has a single value, the API returns a single record-type object instead of an items collection.
To configure the Get Record Types Catalog operation:
-
Select the operation on the Anypoint Code Builder or Studio canvas.
-
In the General properties tab for the operation, enter these values:
-
Select
Optional comma-separated record-type names to retrieve (for example,
customerorassemblybuild,customer,journalEntry). When omitted, all record types are returned as anitemsarray. -
As Swagger Spec
When
true, sendsAccept: application/swagger+jsonso NetSuite returns a combined OpenAPI 3.0 specification for all selected record types. Required for a multi-value Select to return the documented combined spec. Defaults tofalse, which preserves the original JSON behavior.
-
Configure the Get Select Value Operation
The Get Select Value operation retrieves select-option metadata for one or more fields on a record type, with automatic pagination, by sending POST /record/v1/{recordType}. Each For Each iteration yields one select-option object (for example, {"id": 16, "refName": "Active"}).
To configure the Get Select Value operation:
-
Select the operation on the Anypoint Code Builder or Studio canvas.
-
In the General properties tab for the operation, enter these values:
-
Record Type
The NetSuite record type (for example,
customer,salesOrder, orinvoice). -
Fields
Comma-separated list of field names to retrieve select options for, passed as the
fieldsURL query parameter. Supports dot notation for sublist fields (for example,line.dueToFromSubsidiary), and multiple fields (for example,entitystatus,category). -
Page Size and Max Total Results
Control the number of select options per page (default 100) and the maximum total returned across all pages (default
-1, unlimited). -
Record Body
Optional JSON body that provides record context used to filter the returned select options.
-
Configure the Get Governance Limits Operation
The Get Governance Limits operation retrieves governance concurrency limits for the current account and integration by sending GET /system/v1/governanceLimits. It returns account-level limits (total and unallocated) and integration-level limits (allocated concurrency and limit type). This operation requires administrator-level permissions. The integrationConcurrencyLimit field is present only when integrationLimitType is integrationSpecific.
To configure the Get Governance Limits operation:
-
Select the operation on the Anypoint Code Builder or Studio canvas.
-
In the General properties tab for the operation, enter these values:
This operation takes no operation-specific parameters other than the configuration reference.
Configure the Get Server Time Operation
The Get Server Time operation retrieves the current NetSuite server time in UTC, regardless of the user’s time zone, by sending GET /system/v1/serverTime. Use it for synchronization that must compare against server time rather than client time.
To configure the Get Server Time operation:
-
Select the operation on the Anypoint Code Builder or Studio canvas.
-
In the General properties tab for the operation, enter these values:
This operation takes no operation-specific parameters other than the configuration reference.



