Sub topic 3
Stages and the Stage picklist
This chapter assumes you can navigate Salesforce, know what Accounts, Contacts, and Leads are, and understand the difference between standard and custom fields. It also assumes you know the basic idea of a sales pipeline.
What a stage is
A stage marks where an opportunity sits in your sales process. Every opportunity has one value in the standard Stage field (API name StageName). Reps move the value forward as the deal progresses, and it ends at a closed value.
Stage is the field that most pipeline reports, list views, and Kanban boards group by. Changing it also changes other data on the record, which later chapters cover.
The Stage picklist
Stage is a picklist field, so its values come from a list that an admin maintains. You edit it in Setup under Object Manager > Opportunity > Fields & Relationships > Stage. Each value has these properties:
- Label: the text users see, such as "Qualification".
- Order: the position in the list. It controls how values appear in the picklist and in Path, and it should match the real sequence of the sales process.
- Closed and Won flags: these tell Salesforce whether the value ends the deal and whether it counts as a win.
Salesforce has three kinds of stage:
| Kind | Meaning | Example |
|---|---|---|
| Open | The deal is still active. | Prospecting, Proposal/Price Quote |
| Closed/Won | The deal was won. | Closed Won |
| Closed/Lost | The deal was lost. | Closed Lost |
The IsClosed and IsWon fields on the opportunity are set from the stage's type. That is why the query WHERE IsClosed = false finds open deals without listing stage names.
Stages are not forced to move in order
Salesforce does not stop a rep from jumping from Prospecting to Closed Won, or from moving a deal backward. The order in the picklist is a guide, not a rule. If you need to enforce movement, you use validation rules or automation, covered in a later chapter.
Seeing stages in data
Because Stage is a normal field, you can group by it. This query counts open deals and totals their amounts for each stage:
SELECT StageName, COUNT(Id) deals, SUM(Amount) total
FROM Opportunity
WHERE IsClosed = false
GROUP BY StageNameThis is the basic shape of a pipeline-by-stage report.
Common errors
- Renaming a value that is in use. Renaming a picklist value in the Stage field updates existing records, but any report filter, formula, or validation rule that uses the old label as text may break or stop matching. Check these before you rename.
- Deleting a value that is in use. Deleting a stage value requires choosing a replacement for existing records. Deactivating it instead keeps the history readable.
- Too many stages. Long lists make reps skip stages or update them late, so the data becomes unreliable. Add a stage only when it marks a real change in the buyer's progress.
- Stages that describe seller activity. "Sent email" describes what the rep did. A stage like "Needs Analysis" describes where the buyer is. Buyer-based stages hold up better in reports.
- Using stage values in formulas without
ISPICKVAL. Stage is a picklist, so a formula such asStageName = "Closed Won"fails. WriteISPICKVAL(StageName, "Closed Won").
Exercise
A report filter uses Stage equals Negotiation/Review. An admin renames that stage to "Contract Review". What should you check, and what is a safer way to filter for open deals in general?
Show answer
Check whether the report filter, formulas, and validation rules still match the new label, and update any that use the old text. A safer general filter for open deals is Closed equals False (the IsClosed field), because it does not depend on stage names.