Sub topic 2
Key opportunity fields
This chapter assumes you can navigate Salesforce apps, tabs, and record pages. It also assumes you know the difference between standard and custom fields, and that you have a basic idea of a sales pipeline. Here you will learn which standard fields on the Opportunity object drive pipeline reporting, and how they behave.
The fields that matter most
An opportunity has many fields, but a few do most of the work. Reports, forecasts, and list views lean on them constantly.
| Field | API name | Type | What it does |
|---|---|---|---|
| Opportunity Name | Name | Text | Identifies the deal. Required. |
| Account Name | AccountId | Lookup | Links the deal to the customer. |
| Amount | Amount | Currency | The expected deal value. Totals in reports and forecasts come from here. |
| Close Date | CloseDate | Date | The expected or actual closing date. Required. |
| Stage | StageName | Picklist | Where the deal is in the sales process. Required. |
| Type | Type | Picklist | Classifies the deal, for example New Business or Existing Business. |
| Next Step | NextStep | Text | The next action to move the deal forward. |
Stage also determines two other fields, Probability and Forecast Category. Later chapters cover that in detail.
Amount
Amount is the expected revenue. It is a plain currency field when the opportunity has no products. Once you add opportunity products, Salesforce calculates Amount as the sum of the product line totals, and you can no longer edit it directly.
Because pipeline reports sum this field, a blank Amount makes a deal invisible in totals. Teams that care about accurate pipeline often require Amount past a certain stage, which is a good use for a validation rule.
Close Date
Close Date is the date you expect to win or lose the deal. For open deals, forecasts and reports group them by this date, so a stale date skews the numbers. When a deal reaches a closed stage, the date should show when it actually closed.
Stage
Stage is a required picklist. Its values come from the sales process assigned to the record type. It also decides whether the deal is open or closed, which the IsClosed and IsWon fields expose.
Type and Next Step
Type is optional, but it is useful for splitting reports, for example new customers versus renewals. Next Step is a free-text field, and many teams use it as a lightweight habit: every open deal should say what happens next.
You can enforce that habit with a validation rule. This one blocks saving in the Negotiation/Review stage unless Next Step is filled in:
AND(
ISPICKVAL(StageName, "Negotiation/Review"),
ISBLANK(NextStep)
)Set the error message and error location when you create the rule. Putting the error on the Next Step field shows users exactly what to fix.
Fields in reporting
These fields combine into the basic pipeline report. This SOQL query counts open opportunities and totals their Amount for each stage:
SELECT StageName, COUNT(Id) deals, SUM(Amount) total
FROM Opportunity
WHERE IsClosed = false
GROUP BY StageNameCommon errors
- Leaving Amount blank. The deal drops out of sums and forecasts. Require it at the right stage.
- Letting Close Date go stale. Open deals with past dates distort period reports. Review them in a list view.
- Trying to edit Amount on a deal with products. The field is read-only. Change the product lines instead.
- Using Next Step as a log. It holds one current action. Use activities or notes for history.
Exercise
A rep says an opportunity's Amount field is greyed out and cannot be edited. The deal has three product lines. What is the likely cause, and how does the rep change the Amount?
Show answer
When an opportunity has products, Salesforce sets Amount to the sum of the product line totals and makes the field read-only. The rep changes the quantity or sales price on the product lines, or adds or removes products, and Amount updates automatically.