How do revenue and quantity schedules support subscription and recurring billing models in Sales Cloud?
Answer
Basics: A subscription or installment deal has timing: 1,000 per month for 12 months, or deliveries each quarter. A revenue schedule records money by date; a quantity schedule records units by date; a schedule can be both. Reps and finance can then see when value lands rather than one lump sum.
How it works: 1) Enable schedules in Setup > Products Settings. 2) Mark each product as schedulable and set defaults: installment period (daily, weekly, monthly, quarterly, yearly), number of installments, and type (Divide splits the total, Repeat repeats the per-installment amount). 3) Add the product to the opportunity; the default schedule creates records in OpportunityLineItemSchedule (OpportunityLineItemId, Type, Revenue, Quantity, ScheduleDate, Description). 4) Reps edit individual installments if the plan varies.
Advanced / deep dive: Native schedules do not create invoices, payment records, renewals or proration, and they do not recognize revenue by accounting rules. For true recurring models use Salesforce Billing or Revenue Cloud (CPQ and Billing, evolving under the Revenue Cloud name; verify current packaging), or push the opportunity to an ERP. The schedule total can differ from the line total if someone edits installments; no automatic validation exists, so add a Flow or trigger to compare sums. Integrations that update line items (CPQ, ERP sync) must account for schedules being deleted or regenerated. A schedule holds at most 150 installments. Reporting: use the opportunity product schedule report type to produce monthly revenue views, or CRM Analytics for cohorts.
Code / config example:
// Build a 12-month revenue schedule for a line item (bulk-safe if looped over a list)
List<OpportunityLineItemSchedule> rows = new List<OpportunityLineItemSchedule>();
Date.today().toStartOfMonth();
lineItemTotal / ;
( ; i < ; i++) {
rows.add( (
OpportunityLineItemId = lineItemId,
Type = ,
Revenue = monthly.setScale(),
ScheduleDate = start.addMonths(i),
Description = + (i + )));
}
insert rows;