NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Count → Insert record

AI-generated

Summary

Insert a new Inventory Count record in NetSuite by creating a counted inventory adjustment and returning the created record.

Inputs

  • isDebugMode — Include full HTTP request and response data in the output.
  • additionalFields — Main transaction fields – choose value types, dates, and sublist data such as account, class, count start date, custom form, transaction date, department, item lines (including adjusted quantity, count quantity, item reference, memo, rate, units) and other optional attributes.
  • customFields — Add any custom field values for the record; each custom field must be selected from the NetSuite schema and provided with a value matching its type.

Output shape

When debug mode is off, returns the JSON representation of the created Inventory Count record as returned by NetSuite (including internalId, tranId, and populated fields). When debug mode is on, returns an object containing both the full HTTP request (method, URL, headers, body) and the HTTP response (status, headers, body).

Fields omitted from the request will not appear in the returned record. Errors from NetSuite are surfaced as workflow errors and contain the error message and code.

Examples

Example 1: Create a simple inventory count

Set tranDate and countDate to the date of the count, provide one item line with item reference ID, countQuantity and optional adjustedQuantity. Enable default settings for other fields.

Example 2: Insert with debug information

Enable isDebugMode. Same item details as above; the output will include request and response objects for troubleshooting.

Example 3: Insert with custom fields

Add a custom field "custrecord_location_of_count" (type ‘String’) with a value, alongside the same basic count data. The returned record will include the custom field value.

Discussion