Sub topic 3
Getting leads into Salesforce
This chapter assumes you can navigate Setup and the Object Manager, and that you know what Lead Status and Lead Source do. Here you will compare the three common ways a lead enters Salesforce: manual entry, file import, and Web-to-Lead. You will also see where each one sets the lead owner.
Three entry paths
| Path | Best for | Volume | Owner assignment |
|---|---|---|---|
| Manual entry | Leads from calls, events, referrals | One at a time | Creator, unless you choose to run assignment rules |
| Data Import Wizard or Data Loader | Event lists, purchased lists, migrations | Wizard: up to 50,000 records. Data Loader: larger files | Set in the file, or by running assignment rules |
| Web-to-Lead | Website forms | Continuous, up to 500 per 24 hours | Assignment rules run automatically if an active rule exists |
Manual entry
Create a lead from the Leads tab with New. Required fields are Last Name and Company unless an admin changed the page layout or validation rules. If your org exposes the Assign using active assignment rule checkbox, tick it to run the rules. If you leave it off, you become the owner.
Importing leads
The Data Import Wizard handles up to 50,000 records and walks you through field mapping. Use Data Loader for larger volumes or for scripted loads.
Prepare the file before you import:
- Include a value for every required field, such as
LastNameandCompany. - Use exact picklist values for
StatusandLeadSource. Unrecognized values can fail or create unwanted picklist entries, depending on the tool and settings. - Decide how owners are set. Either supply an
OwnerIdfor each row, or choose to run the active assignment rule during the import. - Turn on duplicate checking if your org has duplicate rules. Otherwise you can create two leads for the same person.
Web-to-Lead
Web-to-Lead posts a website form straight into the Lead object. In Setup, search for Web-to-Lead, enable it, and choose Create Web-to-Lead Form. Salesforce generates the HTML. The form below shows the essential parts. Replace YOUR_ORG_ID with your 15-character organization ID.
<form action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">
<input type="hidden" name="oid" value="YOUR_ORG_ID">
<input type="hidden" name="retURL" value="https://www.example.com/thanks">
<input type="hidden" name="lead_source" value="Web">
<label for="first_name">First Name</label>
<input id="first_name" maxlength="40" name="first_name" type="text">
<label for="last_name">Last Name</label>
<input id="last_name" maxlength="80" name="last_name" type="text" required>
<label for="company">Company</label>
<input id="company" maxlength="40" name="company" type="text" required>
<label for="email">Email</label>
<input id="email" maxlength="80" name="email" type="email">
<input type="submit" value="Submit">
</form>Key points about this form:
oidtells Salesforce which org receives the lead.retURLis the page the visitor sees after submitting.- The
lead_sourcehidden field sets Lead Source, so reports can separate web leads from other sources. The value must match a picklist value. - Standard fields use names like
last_name. Custom fields use the field ID that Salesforce generates in the form.
Default owner and rules
Web-to-Lead uses the active lead assignment rule to pick the owner. If no rule matches, or none is active, the lead goes to the Default Lead Owner in the Web-to-Lead settings. You can also set a Web-to-Lead auto-response template there. The next chapters cover queues and rules in detail.
Common problems
- No lead created. Check that Web-to-Lead is enabled and that
oidis correct. Also check that required fields are not blank. - Wrong Lead Source or Status. The submitted value does not match a picklist value. Fix the form or add the value in Setup.
- Everything lands with one person. No rule is active, or no rule entry matches. The default owner receives the lead.
Exercise
A marketing team imports 8,000 event leads with the Data Import Wizard. Every lead ends up owned by the person who ran the import, although an active assignment rule exists. What is the likely cause, and how do you fix it?
Show answer
The import did not run the assignment rule. Imports only apply the rule if you choose that option, and otherwise the importing user becomes the owner. Re-import with the active assignment rule selected, or supply an OwnerId for each row in the file.