Create Quote Routing Recipients
  • 06 Sep 2024
  • 1 Minute to read
  • Dark
    Light

Create Quote Routing Recipients

  • Dark
    Light

Article summary

Purpose

Allows you to run a script to apply custom filters and show only relevant personnel to the sales user, such as personnel within a specific functional and regional scope.

Setup

Upload the script for Quote Routing Recipients.

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
routingUsersCollection<BusinessObject>Default list of users available for routing. The script can add and remove users in this list.
routingSalesTeamsCollection<BusinessObject>Default list of sales teams available for routing. The script can add and remove sales teams in this list.
salesItemsTreeSalesItemsTree Represents the quote. Contains functions you can use to query and modify the quote and its line items.

Expected output

No output expected.

Changes to the binding variables routingUsers and routingSalesTeams affect the list of users and sales teams displayed in the Route Quote pop-up window.

Script execution

The script uploaded for this extension point is run automatically when a user selects Actions > Route to open the Route Quote pop-up window. The window displays only the users and sales teams allowed by the script.

A common use case is to limit users available for routing based on the organization unit hierarchy. To get the hierarchy, use the helper function groovyCtxUtil.getOrgUnitHierarchy() .


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.