In this article (8 sections)
- List price, lost discount, charged components
- First, find out which procedure prices the quote
- Read the price waterfall, not the logs
- Why the standard procedure treats a renewal like an amendment
- The decision to make before fixing: where the price starts
- The right price from the button, and eight filters to watch
- In practice
- Sources
Stage: the contract renewal, started with the Renew button from the customer’s assets. The client sold licenses in bundles, with a bundle discount and indexation at renewal. On the first test with a real contract, a quote expected at 16,455.96 came out at 22,252. The cause had to be found before go-live, or every renewing customer would have gotten a wrong invoice on their anniversary date.
List price, lost discount, charged components
The bundle had been sold as 5 licenses at a list price of 3,600, with a 10% bundle discount (3,240 net per license) and a dozen included components at 0. The asset carried 1.58% indexation.
| Line | Original sale | Renewal produced | Expected |
|---|---|---|---|
| Licenses × 5 | 16,200 | 18,000 | 16,455.96 |
| Included components | 0 | 4,252 | 0 |
| Total | 16,200 | 22,252 | 16,455.96 |
The licenses restarted at 5 × 3,600 = 18,000 instead of 5 × 3,240 × 1.0158 = 16,455.96. With the components charged, the total was 37% above what the customer paid (16,200) and 35% above the expected price. The indexation rate was right there on the line, but the calculation ignored it, and the discount too.
EnlargeSame contract, first renewal tested before go-live
A management decision, not a technical setting. Test it on a real contract before go-live: nothing was billed, the gap was caught in testing.
- Base 100: what the customer pays today.
- Expected: that price, plus the indexation in the contract.
- What the first renewal tested before go-live produced: 137, i.e. +37%. Full list price was back, the bundle discount was gone, included components were billed, the indexation was nowhere.
- Management decides the rule: restart from the last price, or from the list price (the uplift set on the asset is then ignored).
First, find out which procedure prices the quote
On this org, a Procedure Plan (the orchestrator that decides which pricing procedure runs) was active on the quote and pointed at a custom procedure. The first fixes went there: five versions, no change.
Salesforce reads the pricing procedure from three different settings, depending on the entry point. Product Discovery Settings drives the list price shown in the catalog. Salesforce Pricing Setup handles headless API calls. And the procedure selected in Revenue Settings prices quotes and orders, as the Salesforce docs put it. A renewal goes through the Place Sales Transaction API, so it uses that one, and the plan wasn’t on that path. Which entry points go through a plan still needs to be checked one by one.
EnlargeTo know which version is running, mark it: change a step label and check that the new label shows up at runtime.
Get base prices from price book V7Read the price waterfall, not the logs
The pricing execution logs (PricingProcessExecution) only say whether a line
succeeded or failed, with no message. The price waterfall shows every step that ran, with its
inputs and outputs. You read it with a REST request:
GET /services/data/v66.0/connect/core-pricing/waterfall/{lineItemId}/{executionId}One read of the waterfall showed four causes.
Why the standard procedure treats a renewal like an amendment
Lines created by the renewal arrive with a “last transaction” pricing source
(ItemPricingSource = LastTransaction), the same as amendment lines. The standard
procedure is written so that an amendment keeps the price already negotiated: no new discount,
no recalculation, the original price copied over. A renewal inherits all of those protections,
when it’s exactly the line that needs recalculating. They also arrive with an empty
DerivedPricingAttribute, where a new sale line has false. The four
causes follow from that.
1. The lines skip the net price calculation
Several groups in the standard procedure filter on the condition below. An empty value doesn’t satisfy it: those lines skip the net price calculation, end in failure, and the engine keeps the list price, with no error message.
DerivedPricingAttribute IsNotNull AND DerivedPricingAttribute Equals falseDerivedPricingAttribute IsNull OR DerivedPricingAttribute Equals false2. The “last transaction” step overwrites the result
The last-transaction branch ends with an assignment InputUnitPrice →
NetUnitPrice. That’s the step the documentation has you add to enable price amendments
(Revenue Settings, Sales Price Amendments setting; see
Set Up Price Amendments). It runs after discounts
and indexation, and resets the net price to the original unit price. In the waterfall you can
watch the indexation compute the right amount, then this step erase it. The fix excludes renewal
lines from that branch.
ItemPricingSource Equals 'LastTransaction'
AND SalesTransactionActionType NotEquals 'Renew'3. Discounts exclude renewals
Bundle discount, volume discounts, amount and percentage discounts, attribute-based pricing: every group carries a filter that excludes the “last transaction” source. On an amendment, that’s intended. On a renewal, the bundle discount disappears and the included components lose their zero price.
(ItemPricingSource NotEquals 'LastTransaction'
OR SalesTransactionActionType Equals 'Renew')4. Indexation has nowhere to land
The native price revision step needs a revision policy (PriceRevisionPolicy) on
the line. Without one, it does nothing. The documentation page on renewal price uplifts
also uses a formula element placed after the discounts. The fix is a simple formula step, placed
after the discounts and limited to lines with a rate and a positive quantity:
NetUnitPrice + NetUnitPrice * ItemUnitPriceUplift__stdThe percentage stored as 1.58 arrives in the context as 0.0158. The name of the rate field
still needs confirming: the Winter ’27 documentation only mentions
ItemApplUnitPriceUpliftPct__std, and only for ramp deals.
The decision to make before fixing: where the price starts
These fixes assume a pricing policy. On the asset, the PricingSource field says
where amendments and renewals start from: LastTransaction (the last transaction
price) or PriceBookListPrice (the price book list price), as described in
the Asset object reference. According to
the indexation docs, with PriceBookListPrice the uplift
set on the asset is ignored at renewal. On this project the lines arrived as
LastTransaction, and it’s the fixed procedure that starts from list price.
The decision was to renew at today’s list price, reapply the bundle discount, then index. A policy that starts from the net price paid would need different filters.
The workarounds tried didn’t hold. An Apex hook in the Procedure Plan gets overwritten by the next pricing section, which re-reads the records (and the plan wasn’t on the path anyway). Forcing a price through the API that differs from list, even 3,600.01 instead of 3,600, does trigger the full calculation, but a price equal to list is ignored, which is the normal case for a renewal: handy for a test, not for production. And writing the price on the line is refused as soon as it has a detail record: “You can’t edit the Sales Price because the Quote Line Item has related Quote Line Detail records.”
The right price from the button, and eight filters to watch
Two checks were kept before go-live: a new sale still prices the same, and a negative amendment keeps its prorated amount.
The fix has a cost: a procedure version that departs from the standard, with eight modified filters to review at every Salesforce release. Without the reasoning written down next to them, the next admin will “fix” them back. The five wasted versions came from working in the wrong order: the filters were changed before the pricing policy was decided and before anyone proved which procedure was running.
In practice
- Prove which procedure runs before fixing anything. Quotes and orders use the one selected in Revenue Settings. Mark each version with a step label.
- Read the price waterfall, not the execution logs: it shows the step that undoes the calculation.
- Get the renewal pricing policy decided (price paid or list price). Before switching
PricingSourcetoPriceBookListPrice, note that the docs say the uplift is then ignored. - Keep two regression tests: a new sale keeps its price, a negative amendment keeps its prorated amount.
Seen on an org running Summer ’26, then Winter ’27, with Advanced Detail Line Pricing and the Map Line Item step in place. Without that step, negative amendment lines come out at 0: that is the subject of the negative amendment at zero. The empty DerivedPricingAttribute on renewal lines and version selection by start date were observed but aren’t documented: they may change with a release.