- 06 Sep 2024
- 1 Minute to read
- Print
- DarkLight
Create MTO Routing
- Updated on 06 Sep 2024
- 1 Minute to read
- Print
- DarkLight
Purpose
Allows you to run a script to create a new material routing in the ERP system.
Setup
Upload the script for Create Routing 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 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. |
Expected output
The script should return a material number created in the ERP as a string value.
If the script returns an empty value, a material number couldn't be created.
Script execution
The script uploaded for this extension point is run automatically when a user creates a new material in the ERP Helpers screen.