Sub topic 7
Converting a Lead: What Gets Created and What Changes
This chapter assumes you know the standard objects Account, Contact, and Opportunity. It also assumes you can navigate Setup and read basic SOQL. Conversion is the point where a lead stops being a prospect and becomes real customer data.
What conversion does
Converting a lead takes the data on one Lead record and uses it to create or update other records. It is a one-way operation in practice. Once converted, a lead is read-only, and standard users cannot reopen it.
A conversion can produce up to three records:
| Record | Created by default? | Notes |
|---|---|---|
| Account | Yes | Built from the lead's Company and mapped fields. You can choose an existing account instead. |
| Contact | Yes | Built from the lead's person fields. You can choose an existing contact instead. |
| Opportunity | Yes | Optional. You can skip it with "Don't create an opportunity upon conversion". |
The lead itself is not deleted. Salesforce marks it as converted and stores links to the records it produced.
The conversion steps in the UI
- Open the lead and click Convert.
- Choose the account: create a new one or pick an existing one.
- Choose the contact: create a new one or pick an existing one.
- Decide whether to create an opportunity, and name it if so.
- Select a Converted Status. This must be a Lead Status value marked as converted.
- Confirm the record owner. By default the converted records go to the lead's owner.
- Click Convert.
Salesforce then shows the new records. If an existing record matches, it may suggest it first. Matching is covered in a later chapter.
What changes on the lead
The lead keeps its data, but several fields are set automatically:
IsConvertedbecomes true.ConvertedDaterecords when conversion happened.Statusbecomes the converted status you picked.ConvertedAccountId,ConvertedContactId, andConvertedOpportunityIdpoint to the resulting records. The opportunity field is empty if you skipped that step.
Open activities, such as tasks and events, move to the contact. You can also have them attached to another related record. Campaign member history stays linked, and the campaign member status updates according to your setup.
You can see the results with a query:
SELECT Id, Name, ConvertedDate, ConvertedAccountId, ConvertedContactId, ConvertedOpportunityId
FROM Lead
WHERE IsConverted = true
ORDER BY ConvertedDate DESC
LIMIT 10What data moves, and where
Standard fields such as name, email, phone, and address copy to matching fields on the contact and account. Company becomes the account name and the opportunity name when the opportunity is created through the default flow. Custom lead fields copy only if you map them, which is the subject of the next chapter.
Fields that are not mapped stay on the converted lead and do not appear on the new records. This is a common surprise. Users report that "the data disappeared", when it is still on the lead.
Common errors
- No converted status available. Conversion needs at least one Lead Status value marked as converted. If none exists, the Convert button cannot finish.
- Missing permission. The user needs the Convert Leads permission, along with Create on Accounts and Contacts, and on Opportunities if one is created.
- Required fields. A required field on the target object that cannot be filled from the lead blocks the conversion.
- Validation rules. Rules on the account, contact, or opportunity run during conversion and can reject it.
Checking your understanding
Exercise
A rep converts a lead and chooses not to create an opportunity. Which field on the converted lead is empty, and which two remain populated?
Show answer
ConvertedOpportunityId is empty. ConvertedAccountId and ConvertedContactId remain populated because the account and contact were still created or matched.
Exercise
A user says a custom field value from a lead is missing on the new contact after conversion. Where is the data, and what is the likely cause?
Show answer
The value is still on the converted lead record. The custom field was probably not mapped to a contact field, and unmapped fields do not copy during conversion.