How a price gets calculated, one step at a time: base price, discounts, tiers. The pricing rule is written once, in Salesforce, and applies to every quote and every order.
The final price is calculated in several steps, always in the same order: start from the price book price, apply a volume tier, then the discounts. That sequence is called the pricing procedure. It is configured on screen, without code.
Order matters. A 10% discount before or after a tier does not give the same amount. To trace, line by line, where a price comes from, the Price Waterfall shows every addition and every deduction.
The same procedure prices the quote, the order and the renewal. If it changes, every new calculation changes. So it is tested before activation, with the simulation built for that.
A fixed price needs no rule: it lives in the price book. Rules only matter when the price depends on a condition, such as a quantity, a country or a customer type.
For technical teams
A pricing procedure is an expression set that reads a context definition: it only sees the data the context exposes. Salesforce ships templates, not an executable procedure: you clone one.
Three procedures coexist: the one in Revenue Settings (quotes and orders), the one in Product Discovery Settings (list price shown in the catalog), the one in Salesforce Pricing Setup (headless API calls). A decision table (DecisionTable) is only worth it when there is a condition or a tier. Tiers and allowances go through an adjustment schedule (PriceAdjustmentSchedule).
The pricing procedure, step by step: Northwind’s license line, per month
The price is not typed in: it comes out of a sequence of steps, and the calculation details show each one, line by line.
Fictional Northwind example. The default procedure is set in Revenue Settings; it prices quotes, orders and renewals.
List price : 25 licenses × €40, €1,000.
Volume tier : €34 above 50 licenses: not reached, ±0.
Quote discount : −12% granted by the sales rep, −€120.
Net price : what the quote shows, €880.
Try it on the example
Simplified simulation, not the Salesforce screen.
How this price is built
Change a value: the calculation re-runs and the matching step lights up. Fictional example, excluding tax.
Northwind Analytics (fictional company)
Total excl. tax
Pick a step to read what happens there.
1. List price
The product’s price in the price book, for a product selling model and a currency. When the price depends on no condition, it is stored here, and it consumes no pricing procedure element at all.
PricebookEntry
2. Quantity
Carried by the quote line. This is the first place two different quantities get confused: the one that bills and the one that drives sizing are not always the same number.
QuoteLineItem
3. Volume tier
Here the price depends on a condition: “beyond N licenses”. In that case a decision table makes sense. With no condition, it would be pure waste against the procedure’s element ceiling.
DecisionTable · PriceAdjustmentSchedule
4. Discount
An element of the pricing procedure, applied after the base price. Order matters: a discount placed before a tier does not give the same result as one placed after.
ExpressionSet
5. Net price
What the line actually carries, and what billing will pick up. This is the value to read when verifying a price, rather than the configuration.
QuoteLineItem
The same calculation as a table
Line
Unit price
Quantity
Amount
Assumptions behind this calculation
Amounts are excluding tax. VAT depends on the billing profile’s country and is not simulated here.
The discount applies to the subtotal, after the tier. In a real pricing procedure the element order is configurable and changes the result.
No proration, no effective dates, no billing schedule: they belong to billing, which comes after the price is calculated.
This simulation does not reproduce the Salesforce pricing engine. It illustrates the mechanism.
The diagram
Pricing architecturecontext → procedure → price
The rule that keeps a catalog maintainable: a decision table only when there is a condition or a tier. A flat price belongs on the PricebookEntry. Decision tables added by reflex are what fills a procedure up to its element ceiling.
And the procedure that runs is the compiled _Auto version, not the source you edit.
Input — ContextDefinition (what pricing can see)
Decide — DecisionTable (only if conditional), AdjustmentSchedule (tiers and allowances), PricebookEntry (if no condition)
Run — Pricing procedure (ExpressionSet)
Output — Net price (on the line)
The objects involved
Name in the UI
API name
What it is for
Price Book
Pricebook2
a set of prices, by market or currency
Price Book Entry
PricebookEntry
one product’s price, for one selling model
Pricing Procedure
ExpressionSet
the calculation steps, in order
Context Definition
ContextDefinition
the data the procedure is allowed to read
Decision Table
DecisionTable
a rules table, when the price depends on a condition
Price Adjustment Schedule
PriceAdjustmentSchedule
volume tiers and slab discounts
Common pitfalls
A procedure has a ceiling. On one project, a procedure reached 128 elements against an observed ceiling of 130, with one more offer still to build. When a Pricing Procedure Is Full: Procedure Plans
What runs is not what you edit. The procedure is compiled: in the same org, the source had 81 steps and the running version 128. Counting the source proves nothing. When a Pricing Procedure Is Full: Procedure Plans
Only one allowance out of five applied. The standard procedure read schedules through a hardcoded constant: only the one it pointed to was ever read. Included Allowances and Overage
IDs that do not travel. A procedure that works in one org can apply nothing in the next one, with no error. Moving Pricing Between Orgs
When a rep types the final price straight into a quote line, Revenue Cloud records no discount and the approval rule never fires. One extra step in the pricing procedure turns that price into a discount percentage.
Bundle modules were supposed to follow the license count and only did on the second calculation: on the first save, the link to the bundle isn't where the code was looking.