Create MTO BOM
  • 06 Sep 2024
  • 1 Minute to read
  • Dark
    Light

Create MTO BOM

  • Dark
    Light

Article summary

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.

Binding variables

In addition to the common binding variables, the following binding variables are available for this extension point.

Variable nameClassDescription
currentSalesItemNodeSalesItemNode 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.
salesItemsTreeSalesItemsTree Represents the quote. Contains functions you can use to query and modify the quote and its line items.

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.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.