--- title: "Create MTO BOM" slug: "create-mto-bom" description: "Use this extension point to run a script to create a new BOM for a material in the ERP system." updated: 2026-06-02T11:54:41Z published: 2026-06-02T11:54:41Z canonical: "docs.zilliant.com/create-mto-bom" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.zilliant.com/llms.txt > Use this file to discover all available pages before exploring further. # Create MTO BOM ## Purpose Allows you to run a script to create a new BOM for a material in the ERP system. ## Setup Upload the script for **Create BOM in ERP**. For details about uploading and configuring Groovy scripts, read [Upload a Groovy script](/docs/upload-a-groovy-script). ## Binding variables In addition to the [common binding variables](/docs/binding-variables), the following binding variables are available for this extension point. | Variable name | Class | Description | | --- | --- | --- | | currentSalesItemNode | SalesItemNode | Sales item node related to the active object. Include this variable only when the active object is a sales item or a related object, such as item header price item. | | salesItemsTree | SalesItemsTree | Represents the quote. Contains functions you can use to query and modify the quote and its line items. | For details about the classes listed in this table, including available methods, fields, and method signatures, read the [Zilliant Groovy API reference](/main/docs/groovy-api-reference). ## Expected output The script should return a material BOM ID created in the ERP as a string value. If the script returns an empty value, a material BOM couldn't be created. ## Script execution The script uploaded for this extension point is run automatically when a user creates a new material BOM in the **ERP Helpers** screen.