Revenue Cloud Explained · step 2 of 6

Pricing: How It Works

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.

7 articles on this topicAdmin side: Salesforce Pricing, Usage and Rate Management

How it works

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 pricing procedure, step by step: Northwind’s license line, per monthList 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.1List price25 licenses × €40€1,0002Volume tier€34 above 50 licenses: not reached±03Quote discount−12% granted by the sales rep−€1204Net pricewhat the quote shows€880The pricing procedure, step by step: Northwind’s license line, per monthList 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.1List price25 licenses × €40€1,0002Volume tier€34 above 50 licenses: not reached±03Quote discount−12% granted by the sales rep−€1204Net pricewhat the quote shows€880

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.

  1. List price : 25 licenses × €40, €1,000.
  2. Volume tier : €34 above 50 licenses: not reached, ±0.
  3. Quote discount : −12% granted by the sales rep, −€120.
  4. 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.

The same calculation as a table
LineUnit price QuantityAmount
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 architecture context → procedure → price
Input Decide Run Output ContextDefinition what pricing can see DecisionTable only if conditional AdjustmentSchedule tiers and allowances PricebookEntry if no condition Pricing procedure ExpressionSet Net price on the line

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.

  1. Input — ContextDefinition (what pricing can see)
  2. Decide — DecisionTable (only if conditional), AdjustmentSchedule (tiers and allowances), PricebookEntry (if no condition)
  3. Run — Pricing procedure (ExpressionSet)
  4. Output — Net price (on the line)

The objects involved

Name in the UIAPI nameWhat it is for
Price BookPricebook2a set of prices, by market or currency
Price Book EntryPricebookEntryone product’s price, for one selling model
Pricing ProcedureExpressionSetthe calculation steps, in order
Context DefinitionContextDefinitionthe data the procedure is allowed to read
Decision TableDecisionTablea rules table, when the price depends on a condition
Price Adjustment SchedulePriceAdjustmentSchedulevolume tiers and slab discounts

Common pitfalls

Articles on this topic

All 7 articles: Pricing

Back to the full journey

A question about this topic?

I answer every message personally.

Contact

Type at least two letters.