NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Bom → Insert record

AI-generated

Summary

Create a new Bill of Materials (BOM) record in NetSuite.

Inputs

  • Name (required) — A unique and descriptive name for the Bill of Materials or BOM revision.
  • Assembly Items — List of assemblies associated with this BOM, specified by internal or external identifier, along with master default and reference name.
  • Available For All Assemblies — Set to true to allow all assemblies to use this BOM; set to false to limit use to selected assemblies.
  • Custom Form — The custom form to use for this BOM, specified by internal or reference identifier.
  • Date Created — The date this Bill of Materials was created.
  • External ID — An external identifier for the BOM.
  • Inactive — Set to true to hide this BOM or BOM revision from search lists.
  • Include Children — Set to true to make the BOM available for all subsidiaries of the selected parent.
  • Legacy Bom For Assembly — The legacy BOM for an assembly, specified by internal or external identifier.
  • Memo — Optional memo or additional information for this BOM.
  • Reference Name — A reference name for the BOM.
  • Restrict To Assemblies — Assemblies to which this BOM is restricted, specified by internal or external identifier.
  • Subsidiary — The subsidiary to which this BOM belongs, specified by internal or external identifier.
  • Use Component Yield — Set to true to apply component yield to all BOM revisions.
  • Custom Fields — List of custom fields to set on the BOM record. Each custom field requires a field name, type, and value.

Output shape

a single record

Returns the newly created Bill of Materials (BOM) record, including its internal ID and all set properties. If 'Debug Mode' is enabled, the output will also include full request and response information.

Examples

Example 1: Create a simple BOM

Set 'Name' to 'Basic Product BOM'.

Example 2: Create an inactive BOM for a specific subsidiary

Set 'Name' to 'Experimental BOM', 'Inactive' to true, and specify 'Subsidiary' by its internal ID.

Example 3: Create a BOM with custom fields

Set 'Name', and add a 'Custom Field' specifying its 'Field Name', 'Field Type', and 'Value'.

Discussion