Sub topic 1
What an opportunity is and where it fits
Prerequisites
This chapter assumes you can already do the following:
- Move around Salesforce: switch apps, open tabs, use list views, and read a record page.
- Recognize Accounts, Contacts, and Leads and know what each one stores.
- Tell standard objects and fields from custom ones.
- Describe a sales pipeline in general terms, as the set of deals a team is working at any moment.
What an opportunity represents
An Opportunity is a standard object that records a potential deal: something a company might buy, in what amount, and by when. A Lead is an unqualified person or company. An Account is a company you already track. An Opportunity is a specific sale you are trying to win.
Each opportunity has these properties:
- It belongs to one Account.
- It has a stage, which shows how far the deal has progressed.
- It has an amount and an expected close date.
- It ends in one of two closed states: Closed Won or Closed Lost.
Because every deal is stored in the same shape, managers can total, filter, and forecast across the whole team.
Where it fits in Sales Cloud
Opportunities sit between the people you sell to and the revenue you report. The usual path looks like this:
- A Lead is captured and qualified.
- The lead is converted, which creates an Account, a Contact, and usually an Opportunity.
- The rep works the opportunity through its stages.
- The deal closes, and the result feeds reports and forecasts.
Accounts and opportunities have a one-to-many relationship. One account can have many opportunities, such as a first purchase, a renewal, and an upsell. A contact attaches to an opportunity through a contact role, which later chapters cover.
Why the object matters for reporting
Several standard fields drive nearly all pipeline reporting: Amount, Close Date, and Stage. The next chapter covers them in detail. For now, notice that a pipeline report is a grouped total of those fields. This SOQL query counts open opportunities and sums their Amount by stage:
SELECT StageName, COUNT(Id) deals, SUM(Amount) total
FROM Opportunity
WHERE IsClosed = false
GROUP BY StageNameIsClosed is a read-only field that Salesforce sets from the stage. It is true for Closed Won and Closed Lost. Filtering on it is more reliable than listing stage names, because stage names can change.
You can run this query in the Developer Console Query Editor. A report in the Reports tab gives the same result without code.
Common errors
- Using opportunities as a contact list. An opportunity is a deal, not a person. Store people as Contacts and link them with contact roles.
- Creating one opportunity for everything. Reusing a single record for each purchase hides history. Create a new opportunity for each distinct deal, so win rates and amounts stay accurate.
- Skipping the account. Opportunities normally need an Account. Without one, account-based reports and sharing do not work as expected.
- Leaving stale close dates. An open opportunity with a close date in the past distorts the pipeline. Keep dates current.
Check your understanding
Exercise
A customer already has an Account in Salesforce and wants to buy additional licenses six months after their first purchase. Should you reuse the old opportunity or create a new one, and why?
Show answer
Create a new opportunity on the same Account. Each distinct deal gets its own record, so its stage, amount, and close date are tracked separately. Reusing the old record would overwrite the history of the first sale and distort win rates and pipeline totals.