Organize Line Item Structure
  • 11 Sep 2024
  • 1 Minute to read
  • Dark
    Light

Organize Line Item Structure

  • Dark
    Light

Article summary

Purpose

Allows you to run a script to automatically add products, configure them, set quote attributes, and perform other supported operations in quotes. A script is based on the customer specific complex logic and business requirements.

Setup

Upload the script for Organize Line Item Structure.

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

Expected output

The script should return the salesItemsTree variable.

Script execution

A user must manually run the script uploaded for this extension point by following these steps:

  1. Open a quote.
  2. On the Items tab, select Organize line items with script .
  3. Select a script you want to run, then select Next.
  4. Preview the line items structure and select Accept to apply the changes.
    Note

    The system doesn't run validation checks when generating the preview. This means that when you select Accept, the system might still encounter a problem if there are any conflicts.

  5. In the quote, on the bottom button bar, select Save.

The resulting line item table might not fully match the preview due to the possible structure and data modifications from other subsystems. For example, if your script adds a new line item that has a BOM explosion trigger, the preview doesn't show the items from the BOM explosion, but they appear in the line item table.


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.