Rule kinds
Every rule has a kind that determines where it evaluates and what it can do. There are four kinds:| Kind | Where it evaluates | What it does | Use case |
|---|---|---|---|
| Quote Validation | The entire Pricing Option | Validates deal-level conditions and can warn, block, or require approval. | ”Discount cannot exceed 25% on any option.” |
| Pricing Rule | Line items or the option | Automatically adjusts pricing based on conditions. | ”Apply 5% bundle discount when Platform and Analytics are both present.” |
| Row Validation | Individual line items | Validates line-level conditions and can warn, block, or require approval. | ”Discount on this SKU cannot exceed 10%.” |
| Formula Rule | Custom scope | Evaluates complex logic using the formula engine. | ”If TCV exceeds $500k and term is less than 2 years, require VP approval.” |
Creating a rule
Navigate to Admin Console > Price Books > Rules and click Create New Rule.Rule details
Every rule starts with four fields:| Field | Description |
|---|---|
| Name | A clear, descriptive name (e.g., “Enterprise Discount Limit”, “Require Shipping on Hardware”). |
| Description | An explanation of what the rule does and why, for other admins. |
| Status | Active or Inactive. Only active rules are evaluated during quoting. |
| Kind | The rule type: Quote Validation, Pricing Rule, Row Validation, or Formula Rule. |
Building rule sets
A rule’s logic is defined through one or more Rule Sets. Each Rule Set is an “if/then” block consisting of a Scope, one or more conditions (Facts + Operators), and an Action. Click New Rule Set to start building.Scope
The scope determines what the rule is evaluating: the whole Option (deal-level) or a specific Row (line-item-level).Facts
Facts are the data points available for building conditions. The available facts depend on the scope:- Option scope
- Row scope
| Fact | What it evaluates |
|---|---|
| Billing Frequency | The billing cadence selected on the option. |
| Currency Code | The currency of the option. |
| Discount % | The overall discount percentage on the option. |
| Recurring Discount % | The discount percentage on recurring items only. |
| List Price | The total list price before adjustments. |
| Final Rate | The final rate after all adjustments. |
| Product Count | The number of distinct products on the option. |
| Promotion Count | The number of promotions applied. |
| Year | The year of the commitment (for multi-year deals). |
| Total | The total deal value. |
| Recurring Total | The total recurring value. |
| One-time Total | The total one-time value. |
Operators
Compare facts against values using standard operators:| Operator | Usage |
|---|---|
| Equals / Not Equals | Exact match or exclusion. |
| Is Greater Than or Equal To | Numeric threshold (inclusive). |
| Is Less Than | Numeric upper bound. |
| Is In / Is None Of | Match against a list of values (e.g., “SKU is in [PLATFORM-001, ANALYTICS-001]”). |
Multiple conditions
You can add multiple conditions to a single Rule Set (all must be true for the action to fire), or create sub-conditions that target the same row for more granular control. Example: A rule that triggers when the discount is greater than 20% and the billing frequency is monthly and the product category is “Enterprise.”Actions
When a Rule Set’s conditions are met, the system takes an action. Actions have two components: a message and a severity.Message
A custom text message displayed to the rep on the quote. Write clear, actionable messages that explain what’s wrong and what needs to happen. Good: “Discount exceeds 20% on Enterprise products. Requires VP approval.” Bad: “Rule violated.”Severity
| Severity | Behavior |
|---|---|
| Warn | Flags a warning on the quote. The rep can see the alert but can still save and continue editing. The warning must be resolved (typically through approval) before publishing. |
| Error | Blocks the rep from saving or moving forward until the condition is resolved. Use for hard constraints that should never be violated (e.g., selling below cost). |
Approval triggers
Rules can require formal approval before the quote can be published.- Toggle Requires Approver on the Rule Set’s action.
- Select the Approval Tier from your predefined tiers (configured in Approvals).
| Rule | Condition | Severity | Approval tier |
|---|---|---|---|
| Moderate discount | Discount 10-20% | Warn | Tier 1: Sales Manager |
| Large discount | Discount > 20% | Warn | Tier 2: VP of Sales |
| Below-cost pricing | Net price < cost | Error | (blocks entirely) |
| Non-standard terms | Payment terms > Net-30 | Warn | Tier 3: Finance |
Common rule patterns
Maximum discount limit
- Kind: Quote Validation
- Scope: Option
- Fact: Discount %
- Operator: Is Greater Than or Equal To
- Value: 25
- Action: Warn, “Deal discount exceeds 25%. Requires Deal Desk approval.”
- Approval: Tier 2 (Deal Desk)
Product-specific discount cap
- Kind: Row Validation
- Scope: Row
- Condition 1: Product SKU equals
PLATFORM-001 - Condition 2: Row Discount is Greater Than or Equal To 15
- Action: Warn, “Platform discount exceeds 15%. Requires manager approval.”
- Approval: Tier 1 (Sales Manager)
Required product bundling
- Kind: Quote Validation
- Scope: Option
- Condition 1: Category “Hardware” product count > 0
- Condition 2: Category “Shipping” product count equals 0
- Action: Error, “Hardware products require a Shipping line item.”
Multi-product bundle discount
- Kind: Pricing Rule
- Scope: Option
- Condition: Product Count is Greater Than or Equal To 3
- Action: Apply 5% automatic discount to all recurring line items.
How rules connect to the rest of the platform
Rules don’t operate in isolation. They reference and interact with multiple parts of the Veles configuration: Product Categories can be used as conditions. Rules can fire based on which product families are present on a quote. Data Sheets can provide the reference values for rule conditions. A discount threshold data sheet keyed by customer segment allows different limits for Enterprise vs. SMB deals. Custom Fields on products and quote lines can be evaluated in rule conditions, enabling rules based on region, vertical, or other metadata. Approval Tiers are the escalation targets when rules require sign-off. The tier system and the org hierarchy determine who reviews the deal. Quote Lines display rule alerts directly on the affected line item, giving reps immediate visibility into which lines triggered which rules.The workflow at a glance
Configure the action
Write the message, set the severity (Warn or Error), and optionally enable approval routing with a specific tier.
What’s next
Quote Validation Rules
Rules that evaluate the entire Pricing Option.
Pricing Rules
Rules that automatically adjust pricing based on conditions.
Row Validation Rules
Rules that evaluate individual line items.
Formula Rules
Complex multi-variable logic using the formula engine.
Approvals
Configure the approval tiers that rules route to.
Translating SFDC Rules
Migrating from Salesforce CPQ? Map your existing rules to Veles.

