# What is lead conversion in Salesforce Sales Cloud, and what records are created during this process?

**Topic:** Sales Cloud · **Difficulty:** Medium · **Tags:** Sales Cloud, Lead Management, Lead Conversion

Read it on the site: https://www.forcechallenges.com/interview-questions/what-is-lead-conversion-in-salesforce-sales-cloud-and-what-records-are-created-during-this-process

## Answer

**Basics:** A Lead is an unqualified prospect. When sales decides it is real, they click Convert. Salesforce creates or matches a business Account, a Contact attached to it and optionally an Opportunity, so the deal can enter the pipeline. Open activities and campaign history move with the contact.

**How it works:** In the Convert dialog the user picks to create a new Account or select an existing one (the dialog suggests duplicates), the same for Contact, chooses whether to create an Opportunity (with a name), sets the converted Lead Status (a status marked as converted) and the owner. Field values are copied according to Lead field mapping (Setup > Object Manager > Lead > Fields & Relationships > Map Lead Fields); custom Lead fields must be mapped to custom fields of the same type on Account, Contact or Opportunity or their values are not carried. After conversion the Lead has `IsConverted = true` with `ConvertedAccountId`, `ConvertedContactId` and `ConvertedOpportunityId`.

**Advanced / deep dive:** Programmatic conversion uses `Database.convertLead(List<Database.LeadConvert>)` (up to 100 conversions per call; each counts toward DML limits). Duplicate rules apply to the new or matched records. Validation rules and required fields on Account, Contact and Opportunity are enforced; the setting "Require Validation for Converted Leads" also enforces Lead validation rules. Triggers and flows fire on the created records and on the Lead update. Converted leads are read-only unless users have the "Edit Converted Leads"-type permission (verify exact permission name in your release), and cannot be un-converted by users. With Person Accounts enabled, conversion creates a Person Account instead of Account plus Contact. Product naming: Einstein Lead Scoring, if used, is part of the now Agentforce/Einstein sales AI portfolio; scoring does not change conversion mechanics.

**Code / config example:**
```apex
// Bulk-safe lead conversion
List<Database.LeadConvert> converts = new List<Database.LeadConvert>();
LeadStatus cs = [SELECT MasterLabel FROM LeadStatus WHERE IsConverted = true LIMIT 1];
for (Lead l : [SELECT Id FROM Lead WHERE Id IN :leadIds AND IsConverted = false]) {
    Database.LeadConvert lc = new Database.LeadConvert();
    lc.setLeadId(l.Id);
    lc.setConvertedStatus(cs.MasterLabel);
    lc.setDoNotCreateOpportunity(false);
    converts.add(lc);
}
List<Database.LeadConvertResult> results = Database.convertLead(converts, false);
for (Database.LeadConvertResult r : results) {
    if (!r.isSuccess()) { System.debug(r.getErrors()); }
}
```

**Hidden gotchas & must-remember points:**
- The Lead is not deleted; it remains with converted fields populated.
- Unmapped custom fields lose their data on conversion.
- Required and validation rules on the target objects can block conversion.
- `Database.convertLead` is limited to 100 conversions per call.
- Converted leads are mostly read-only and cannot be reverted by regular users.
- Existing contacts matched during conversion do not receive overwritten values unless you choose so.

**Best practice:** Map fields deliberately before go-live, use duplicate rules to avoid duplicate accounts, and convert in bulk through `Database.convertLead` with partial-success handling.

---
Source: ForceChallenges · last updated 2026-11-02
