Rules

Documentation Index

Fetch the complete documentation index at: https://documentation.mobileforcesoftware.com/llms.txt

Use this file to discover all available pages before exploring further.

Rules

Mobileforce CPQ provides a condition/action engine that allow Admins to customize automation using rules. A rule specifies an automated action that should be performed on a product or quote when some event occurs on that product or quote. Each product or quote template can include multiple rules.

Admins can create rules to:

To accomplish this, Mobileforce CPQ supports three types of rules: Product Rules, Pricing Rules, and Approval Rules.

For more information about rule strategies, see Recommendations for Mobileforce Rules.

Rule Structure

In addition to the common database fields described above, a rule has the following additional fields:

Trigger condition

Trigger conditions in rules use a formula as follows: .

Formula variables

One can access any attribute, group, or CPQ-computed value using the naming syntax described in the previous section.

Additionally, the following special variables are defined

Formula functions

In addition to the standard Form Object formula functions, the following functions are supported:

Rule trigger parameters

This section describes the allowed parameters in the triggerParams JSON object field of a rule. The parameters allowed vary based on the value of the triggerType field.

updatePrice trigger parameters

checkApproval triggerParameters

Rule action parameters

This section describes the allowed parameters in the actionParams JSON object field of a rule. The parameters allowed vary based on the value of the actionType field.

Error action parameters

Warning action parameters

Info action parameters

addProduct action parameters

addDiscount action parameters

needsApproval action parameters