Sub topic 5
Creating and editing a sales process
This chapter assumes you know how to move around Setup and Object Manager. It also assumes you know what the Opportunity Stage picklist is, including that each value carries a probability and a forecast category. Those were covered in the previous two chapters. Here you will build a sales process, change one that is already in use, and avoid the mistakes that cause trouble later.
What a sales process is
A sales process is a named subset of the Opportunity Stage picklist values. It does not define new stages. All stage values live in one picklist on the Opportunity object. A sales process chooses which of those values a group of opportunities may use.
This separation lets different sales motions share one object. A new-business team might use seven stages. A renewals team might use three. Both pick from the same master list, and each sees only its own subset.
A sales process does not do anything on its own. It takes effect only when you attach it to an opportunity record type, which the next chapter covers. The record type is what users get assigned to. The sales process only filters the stage list.
Where the pieces are stored
Two kinds of setup are involved, and they live in different places.
| Setting | Location in Setup | What it controls |
|---|---|---|
| Stage values | Object Manager, Opportunity, Fields & Relationships, Stage | The full list of stages, plus each stage's probability, type, and forecast category |
| Sales processes | Quick Find, "Sales Processes" | Which stage values each process includes |
| Record types | Object Manager, Opportunity, Record Types | Which sales process applies, and which users and layouts go with it |
Every org already has a sales process named Master. It includes all stage values, and it is what opportunities use when no record type is assigned. Treat it as your starting point for copying. Avoid trimming it down, because it is the fallback.
Before you create a process
Finish the stage values first. A sales process can only select values that already exist, so do these steps in order:
- List the stages for the sales motion on paper, in the order a deal moves through them.
- Check the Stage picklist and reuse existing values where the meaning matches.
- Add any missing values to the picklist, and set probability, type, and forecast category for each.
- Confirm that the list has at least one Closed/Won stage and at least one Closed/Lost stage.
The last point is a hard requirement. A sales process must include a stage of type Closed/Won and one of type Closed/Lost. Otherwise reps have no way to finish a deal, and the page will not let you save.
Adding a new stage value
When you add a value from the Stage field page, the form asks for these items:
- The stage name, which is the label users see.
- The type: Open, Closed/Won, or Closed/Lost.
- The probability, a number from 0 to 100. This is only the default. A rep can still override it on an individual opportunity if the field is editable on the layout.
- The forecast category, such as Pipeline, Best Case, Commit, Closed, or Omitted.
- Which sales processes should include the new value.
The last item saves a step. You can tick the boxes for the sales processes that should get the stage, and skip editing each process later.
Creating a sales process
- In Setup, enter "Sales Processes" in Quick Find and open the page.
- Click New.
- In Existing Sales Process, pick the process to copy. Copying Master gives you every stage to start from.
- Enter a Sales Process Name that describes the motion, such as "New Business" or "Renewal".
- Add a description saying who uses it and why it differs from the others.
- Click Save.
- On the next screen, move values between Available and Selected with the arrow buttons.
- Click Save again.
Choose names that survive growth. "Sales Process 2" tells an admin nothing. "Partner Referral" does.
The order of the stages in a process follows the order of the Stage picklist, not the order you click them in. To change the order users see, use Reorder on the Stage picklist values. That changes the order for every process at once, so a stage that sits in different positions in two motions is a design problem. See the process design chapter for how to handle that.
Checking what is already in use
Before you edit or delete anything, find out which stages real records use. This query groups opportunities by record type and stage:
SELECT RecordType.Name, StageName, COUNT(Id) deals
FROM Opportunity
GROUP BY RecordType.Name, StageName
ORDER BY RecordType.Name, StageNameRun it in Developer Console or any SOQL tool. Records with no record type show a blank name, and those use the Master process. If a stage you plan to remove has a non-zero count, you need a plan for those records.
Editing an existing sales process
You edit a process from its detail page. Click Edit next to the process name, adjust the Selected list, and save. Common changes are covered below.
Adding a stage
Select the stage and move it to the Selected list. It appears in the Stage picklist and in Path for opportunities on that process's record type straight away. Probability and forecast category come from the picklist value, so a stage added to two processes has the same defaults in both.
Removing a stage
Moving a stage out of Selected means new and edited opportunities on that process can no longer choose it. Records that already hold that value keep it in the database. The problem appears when a rep edits such a record. The stage no longer appears in the picklist, and a validation rule or a required Stage field can block the save.
Safe removal follows this order:
- Run the query above and note the affected records.
- Move those opportunities to a replacement stage, using a report export and Data Loader, or a list view mass edit if your org allows it.
- Remove the stage from the process.
- Only then, if no process uses the value, deactivate or delete it from the picklist.
Changing probability or forecast category
These settings belong to the stage value, not the process. Editing the value changes the default for every process that includes it. If two motions need different probabilities for the same label, create two stage values with distinct names, such as "Proposal - Enterprise" and "Proposal - SMB".
Changing a default probability does not rewrite existing opportunities. Records already saved keep the probability they have until their stage changes again.
Deleting and assigning processes
You cannot delete a sales process that a record type still uses. Detach it first by moving the record type to another process, or by removing the record type. The Sales Process field on a record type is chosen when you create the record type, and in many orgs it cannot be changed afterward. Check the record type edit page in your own org before you rely on being able to switch it.
For that reason, create the sales process before the record type, and name them to match. A pair called "Renewal" and "Renewal" is easier to audit than "Process A" and "RT 3".
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Save fails with a message about closed stages | The Selected list has no Closed/Won or no Closed/Lost value | Add one stage of each closed type |
| A new stage is missing from the picklist | The stage was added to the field but not to the sales process | Edit the process and move the stage to Selected |
| Stage appears but users cannot pick it | The user's record type uses a different sales process | Check the record type assignment on their profile or permission set |
| Wrong probability on a new stage | Default set on the picklist value, then overridden by hand | Edit the stage value and review overridden records |
| Process cannot be deleted | A record type still references it | Reassign or remove the record type, then delete |
Exercise
Your Renewal sales process should drop the stage "Prospecting", which 12 open renewal opportunities still hold. List the steps you take, in order, and name the result if you skip the data step.
Show answer
First, run a query grouped by record type and stage to confirm which records hold "Prospecting". Second, move those 12 opportunities to a stage that remains in the Renewal process, such as "Qualification", using a mass update or Data Loader. Third, edit the Renewal sales process and move "Prospecting" from Selected to Available. If you skip the data step, the 12 records keep a stage the picklist no longer offers. Reps will hit errors or blocked saves when they edit them. Reports will also still count those deals under a stage the process no longer uses.
Exercise
A stage called "Negotiation" is in both the New Business and Renewal processes with a default probability of 60. The Renewal team wants 80 for the same stage. What should you do, and why can't you set it in the sales process?
Show answer
Probability belongs to the stage value in the Stage picklist, not to the sales process, so a single value has one default for every process that includes it. Create a separate stage value such as "Negotiation - Renewal" with a probability of 80. Add it to the Renewal process, and remove "Negotiation" from that process.