Conga Product Documentation

Welcome to the new doc site. Some of your old bookmarks will no longer work. Please use the search bar to find your desired topic.

Use Case: Configuring Validation Rules

Business Context

Sales administrators in product-based companies often need to enforce business rules that prevent over-ordering or misuse of products. For example, a company may offer a promotional product with a per-order quantity cap. Without automated enforcement, sales representatives can inadvertently exceed these limits, resulting in fulfillment errors, financial discrepancies, or policy violations. Validation rules in Conga CPQ allow administrators to define and enforce such limits directly within the quoting and ordering workflow, reducing manual intervention and ensuring consistent policy adherence across all transactions.

Overview

This use case demonstrates how a sales administrator at a computer hardware company configures a Validation type constraint rule to restrict the maximum allowable quantity of a product to 5 units per order. When a user enters a quantity greater than 5 for the specified product, the system displays a warning message and prevents the transaction from proceeding.

Scenario

A sales administrator at a computer hardware company needs to ensure that customers cannot order more than 5 units of Product A per transaction. The administrator sets up a constraint rule that evaluates the quantity entered for Product A and displays a warning message if the quantity exceeds the allowed maximum of 5.

Actors involved in this use case:
  • Sales Administrator: Configures the constraint rule in Conga CPQ.
  • Sales Representative: Adds products to the catalog and enters quantity.
  • Conga CPQ System: Evaluates the constraint rule and displays the appropriate warning message.

Set Up Validation Rules

Prerequisites:
  • Product A is created and available in the product catalog.
  • You have administrator access to Conga CPQ.
  • The Constraint Rule and Constraint Rule Action objects are accessible in your Conga CPQ implementation.

Task 1: Configure the Constraint Rule Condition

To define the product that the rule applies to:
  1. On the Constraint Rule Condition Detail page, in the Criteria section, from Product Scope, select Product.

  2. In Product, enter Product A as the product.

  3. In the Match Conditions section, select Match in Primary Lines and click Save.

Task 2: Configure the Constraint Rule Action

To define the action the system takes when the rule condition is met:
  1. On the Constraint Rule Action Detail page, in Message, type {0} cannot exceed 5 quantity. The {0} token is dynamically replaced with the name of the condition product at runtime.

  2. From Action Type, select Validation.

  3. From Action Intent, select Show Message.

  4. From Action Disposition, select Warning.

  5. From Product Scope, select Action Criteria.

  6. In the Match Conditions section, select Match in Primary Lines and click Save.

Task 3: Set the Quantity Criteria on the Constraint Rule

To define the specific quantity threshold that triggers the validation:
  1. On the Constraint Rule Detail page, scroll down to the Constraint Rule Actions related list and click Edit Criteria.

  2. From Field, select Line Item : Quantity.

  3. From Operator, select greater than.

  4. In Value, type 5 and click OK.

Result

The validation type constraint rule is saved and activated. The following behavior is expected on the catalog page:
  • When a sales representative selects Product A and enters a quantity of 6 or more, the system displays the warning message: Product A cannot exceed 5 quantity.

  • Quantities of 5 or fewer are accepted without restriction.

  • The constraint is enforced consistently across all transactions in the catalog.

Points to Remember

  • The {0} token in the message is dynamically replaced with the product name at runtime. Use this token to make messages informative and reusable across similar rules.

  • Setting Action Disposition to Warning displays a non-blocking message. To prevent the user from proceeding entirely, consider using the Error disposition.

  • Ensure that the Match Conditions are set to Match in Primary Lines in both the condition and action to maintain consistency across bundle and standalone product scenarios.

  • For products with multiple quantity tiers or complex pricing conditions, consider combining validation rules with inclusion or exclusion rules for a more comprehensive configuration strategy.