Additional Approval Action
  • 23 Sep 2024
  • 1 Minute to read
  • Dark
    Light

Additional Approval Action

  • Dark
    Light

Article summary

Purpose

Allows you to run a script to enable custom capabilities in the quote approval process, such as transfer the approval process to an external system.

Setup

To set up the extension point, follow these steps:

  1. Create a Groovy script in Zilliant CPQ.
  2. Set up the approval workflow.

Create a Groovy script

Create a Groovy script in Zilliant CPQ. Select Additional Approval Action as the script type.

For details about creating and configuring Groovy scripts, read Upload a Groovy script.

Set up the approval workflow

  1. From the application left navigation area, select Administration.

  2. From the top navigation bar, select Master Data Management.

  3. Scroll or search to locate Approval Gate and select it from the list.

  4. Select +.

  5. Select the newly added, empty row. On the Configuration tab, enter or select values to create an approval workflow:

    • Name—Approval workflow name.
    • Script to Execute—Select the script of the Additional Approval Action type.
  6. Select Save.

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.
approvalGateApprovalGate Approval gate that triggers the script.

Expected output

The script should return string objects.

Script execution

The script of the Additional Approval Action type is run when all the following conditions are met:

  • A user submits an open quote.
  • The defined approval gate is applicable to the quote based on the approval rules.
  • The script of the Additional Approval Action type is assigned to the approval gate.

The script output automatically displays as a note in the quote.


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.