In this article (8 sections)
Stage: the cutover from CPQ to Revenue Cloud, and specifically carrying over the contracts in flight. The client had a few hundred active CPQ contracts, about three thousand live subscriptions, and the CPQ billing package had already invoiced part of the periods. It all had to move to Revenue Cloud without breaking invoice numbering or billing anyone twice. The starting estimate was “write a file, load it, one day of work.” The script did take a day; the time went elsewhere, into deciding what to carry over and proving there was no double billing.
Carry over the active book, not the history
On this project, copying three thousand CPQ quotes into Revenue Cloud quotes, or two thousand six hundred old invoices into Revenue Cloud invoices, would have bought nothing: nobody would have worked on them again, and invoices copied without their original numbers would have broken legal numbering. Other projects carry the history over with its numbers: it is a case-by-case choice. Old quotes and invoices stay readable in the CPQ objects. Since invoices must be retained, they are also exported before CPQ is ever uninstalled.
Only the active book carries over, as Revenue Cloud assets. An asset here has nothing to do with the balance sheet: it’s what the customer bought and still holds. Without assets there’s no amend, renew, cancel or swap in the new tool. That one decision cuts the scope by ten, and the numbering question goes away.
Everything else gets rebuilt. CPQ price rules and product rules don’t migrate: Revenue Cloud prices with pricing procedures and decision tables, and the two engines share no concepts. The catalog starts from Revenue Cloud’s axes (classification, category, bundle), and commercial rules get rewritten first in plain words, independently of how CPQ expressed them.
Load the catalog first, inactive
The migration points at Revenue Cloud products, selling models and prices. They have to exist in production beforehand, without getting in the way of reps still quoting in CPQ.
- The catalog is created as inactive copies, with a suffix so you can recognize them.
- Old products with no equivalent are reused as they are, with just a selling model option and inactive Revenue Cloud prices added. CPQ sees no difference.
- On cutover day, one script activates everything, strips the suffix and deactivates the old products that became duplicates.
One catch-up order per contract
For each active CPQ contract, the script creates one Revenue Cloud catch-up order:
- On the same contract. The customer keeps their contract number and history.
- At the negotiated net price, not list price.
- With net quantities, once CPQ amendments are added up.
- Activated, which creates the assets and links them to the contract.
The unit price comes from the CPQ subscription: net price divided by the proration multiplier gives the price per product term, one month or twelve depending on the subscription term. That’s then converted to the Revenue Cloud selling model, monthly or annual. The same product can appear at two prices in one CPQ contract, part free and part paid for instance: keep one line per price, or the amount is wrong.
Don’t re-bill what CPQ already billed
An order activated in Revenue Cloud produces its billing schedules from its start date. But the catch-up order starts on a period CPQ may already have invoiced. Without a safeguard, every migrated customer gets a second invoice for the same period.
The old billing engine knows how far it has billed: a last-billed-through date on the CPQ order line. That gives three cases.
| State in the old billing engine | How it carries over | Schedule created |
|---|---|---|
| Billed to the end | Current period, flagged “already billed” | None |
| Partially billed | Starts the day after the last billed date | Remaining periods only |
| Billing on hold | Carried over on hold | None |
The flag is a plain checkbox on the order line. The flow that creates billing schedules at activation skips flagged lines. At renewal the new order has no flag, so billing resumes on its own.
Seven failures found in rehearsal
The migration was rehearsed on a sandbox, with real CPQ contracts. Every failure added a line to the script.
- The order action is not created with the order. Creating the order through the API with its action included throws an unexplained exception. Create the
Addaction afterwards, then attach it to every line. Without it there is neither billing nor asset. - No Revenue Cloud entitlement on the order, no asset. An order created from a quote carries an app usage assignment (
AppUsageAssignment). An order created by API doesn’t, and asset creation stops without a word. It has to be set before activation. - Old products don’t create assets. The flag that allows asset creation was false on half the old products. Message: “couldn’t find order products eligible to be converted to assets.”
- A bill-to contact is mandatory. Without one, billing schedules aren’t created. The script carries over the old billing contact, falling back to the first contact on the account.
- A non-annual frequency needs a billing treatment. A monthly or quarterly line without one is rejected: “Add a Billing Treatment to make sure that you can change the Billing Frequency.” The script uses the default treatment of the product’s billing policy.
- A ship-to address is mandatory at activation, even for software. The script copies the account’s billing address.
- Evergreen and fixed-term lines don’t mix. An evergreen line refuses any end date. Starting it at its next anniversary pushes it past the end of the CPQ contract, and the asset-to-contract link is refused: “Start Date must be before End Date on Asset Contract Relationship.” One refusal blocks every asset on the order. Those products got a fixed-term option, aligned with CPQ.
One more case throws off reruns: when order creation fails, it sometimes leaves an empty order behind. The script has to delete it, otherwise it thinks the contract is already migrated and skips it.
A to-the-cent check with finance
One number tells whether the migration is right, and finance can verify it: CPQ annual recurring amount = Revenue Cloud annual recurring amount, to the cent, contract by contract.
The script computes it dry, before any write, and produces a per-contract report of anomalies: product with no mapping, missing contact, bundle flattened. In rehearsal: zero variance across the whole book, one CPQ line = one order line = one asset, and no extra billing schedule.
The remaining cost is mostly manual: a product mapping table between CPQ and Revenue Cloud, usually the longest part when there are many old products. Old bundles whose components don’t exist in the new ones are carried over flat: billing and renewal work, bundle reconfiguration doesn’t.
In practice
- Switch off the old billing engine before the migration. It’s the one irreversible risk in the project.
- Carry over the active book as assets, not history. Old invoices stay readable where they are.
- Flag “already billed” every line whose current period CPQ has invoiced, and have the schedule-creation flow skip those lines.
- Compute annual recurring revenue dry, contract by contract, before writing anything, and have finance sign off.
- Rewrite pricing rules from the business need, never from the CPQ configuration.
The seven failures were seen on Summer ’26 and Winter ’27; error messages may change with a release. The price conversion formulas come from CPQ package fields: check them against your package version. If your auditors require history in the standard objects, plan a dedicated numbering sequence for migrated invoices.