# How do revenue and quantity schedules support subscription and recurring billing models in Sales Cloud?

**Topic:** Sales Cloud · **Difficulty:** Medium · **Tags:** Sales Cloud, Product Schedules, Revenue Management

Read it on the site: https://www.forcechallenges.com/interview-questions/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:**
```apex
// Build a 12-month revenue schedule for a line item (bulk-safe if looped over a list)
List<OpportunityLineItemSchedule> rows = new List<OpportunityLineItemSchedule>();
Date start = Date.today().toStartOfMonth();
Decimal monthly = lineItemTotal / 12;
for (Integer i = 0; i < 12; i++) {
    rows.add(new OpportunityLineItemSchedule(
        OpportunityLineItemId = lineItemId,
        Type = 'Revenue',
        Revenue = monthly.setScale(2),
        ScheduleDate = start.addMonths(i),
        Description = 'Month ' + (i + 1)));
}
insert rows;
```

**Hidden gotchas & must-remember points:**
- Schedules are disabled until you enable them and mark each product.
- Maximum of 150 installments per schedule.
- Rounding differences (Divide type) can leave a cent or more off the total.
- Changing product, quantity or price on the line can reset the schedule.
- Opportunity Amount and forecasts are not automatically spread by schedule.
- Not a replacement for billing, invoicing or revenue recognition.

**Best practice:** Use schedules for modest phasing needs and move to a billing or CPQ solution when contract complexity grows.

---
Source: ForceChallenges · last updated 2026-11-02
