Mini Project: Create and Configure a Lead Management System
Objective:
Design a basic Lead Management system using Salesforce. This project will focus on creating and
configuring standard Salesforce objects, automation, and reports to handle sales leads effectively.
Steps:
1. Set Up Custom Fields:
o Create custom fields on the Lead object to capture additional lead details like:
Lead Source (Picklist)
Interested Product (Picklist or Lookup to a custom Product object)
Lead Rating (Picklist or Number)
2. Create Record Types and Page Layouts:
o Set up two record types on the Lead object:
New Lead
Contacted Lead
o Customize page layouts to display relevant fields and information based on the
record type.
3. Lead Assignment Rules:
o Create assignment rules to automatically assign leads to specific sales reps based on
conditions such as Lead Source or Region.
4. Create Workflow Rules and Email Alerts:
o Create a workflow rule to send an email notification to the sales rep when a lead is
assigned.
o Set up a rule that updates the Lead Status to "Contacted" when a lead's Lead Rating
reaches a certain threshold.
5. Create Validation Rules:
o Ensure data integrity by creating validation rules, for example:
Prevent creating a Lead without an Email Address if the Lead Source is
"Web".
Ensure that the Phone Number field follows a specific format.
6. Create Reports and Dashboards:
o Design a report to view Lead Conversion Rates (New Leads vs. Converted Leads).
o Create a simple dashboard to track lead performance, including:
Leads by Source
Leads by Owner
Conversion Rate over time
7. Lead Conversion Process:
o Configure the Lead Conversion process by mapping the Lead fields to the Account,
Contact, and Opportunity fields.
o Allow users to convert leads into Accounts, Contacts, and Opportunities.
Step 1: Create Custom Fields on the Lead Object
1. Navigate to Setup:
o From the Salesforce Home page, click on the Gear Icon (top-right) and select Setup.
2. Go to Object Manager:
o In the Setup search box, type "Object Manager" and click on it.
o Search for Lead and select the Lead object.
3. Add Custom Fields:
o Inside the Lead object, select Fields & Relationships from the sidebar.
o Click on New to create a new custom field.
o Create the following custom fields:
Lead Source (Picklist):
Choose Picklist and define options like "Web", "Referral", "Trade
Show", etc.
Interested Product (Picklist or Lookup):
If it's a picklist, create a list of products, or you can create a custom
Product object and create a Lookup Relationship.
Lead Rating (Picklist or Number):
You can use a Picklist with values like "Hot", "Warm", "Cold" or a
Number field.
4. Save the Fields.
Step 2: Create Record Types and Page Layouts
1. Create Record Types:
o In the Lead Object, go to Record Types under Fields & Relationships.
o Click New Record Type and create:
New Lead
Contacted Lead
o Make sure to associate the correct page layout with each record type (we'll modify
layouts in the next step).
2. Customize Page Layouts:
o Go to Page Layouts under Fields & Relationships in the Lead object.
o Edit the layouts for each record type and ensure that the newly created fields (Lead
Source, Interested Product, and Lead Rating) are visible in the layout.
Step 3: Create Lead Assignment Rules
1. Create Assignment Rule:
o In Setup, search for Lead Assignment Rules.
o Click New Rule and name it (e.g., "Lead Assignment Rule").
o Create criteria for assignment, for example:
If Lead Source is "Web", assign to a specific user.
If Lead Region is "East", assign to another user.
2. Define Rule Entries:
o Add rule entries for each of your conditions (e.g., assign leads based on Region or
Lead Source).
o Ensure that the lead gets automatically assigned to a sales representative when a
new lead is created.
Step 4: Create Workflow Rules and Email Alerts
1. Create Workflow Rule:
o In Setup, search for Workflow Rules.
o Click New Rule, and choose Lead as the object.
o Set the rule criteria, for example:
Rule Name: "Lead Assigned Email Notification"
Criteria: "Lead Owner changes" or when a lead is assigned.
2. Create Email Alert:
o Create a new Email Alert action in your workflow rule.
o Choose an email template or create a custom one.
o Specify who the email will be sent to (e.g., the Lead owner or Sales Rep).
o Activate the workflow.
3. Create Another Workflow Rule for Lead Rating:
o Create a workflow that triggers when a Lead’s Lead Rating reaches a certain
threshold (e.g., when Lead Rating is "Hot").
o Set it to update the Lead Status to “Contacted”.
Step 5: Create Validation Rules
1. Create Validation Rule:
o In the Lead Object, go to Validation Rules.
o Click New Rule.
o Example 1: Prevent creating a Lead without an Email Address if the Lead Source is
"Web":
Formula: AND(ISPICKVAL(LeadSource, "Web"), ISBLANK(Email))
Error Message: "Email Address is required for Web Leads."
o Example 2: Ensure Phone Number is in a specific format (using a formula that checks
the format).
2. Save the Validation Rule.
Step 6: Create Reports and Dashboards
1. Create a New Report:
o In Setup, search for Reports and click New Report.
o Select the Leads report type.
o Customize the report to include:
Lead Source
Lead Status
Lead Owner
Lead Rating
o Use Filters to sort data by Lead Source or Lead Rating.
2. Create a Dashboard:
o Go to Dashboards in the Setup menu.
o Click Create New Dashboard.
o Add components like:
Leads by Source: Bar chart showing the number of leads by source.
Leads by Owner: Pie chart showing the distribution of leads.
Conversion Rate: Graph showing the conversion rate of leads.
Step 7: Configure the Lead Conversion Process
1. Configure Lead Conversion Settings:
o In Setup, search for Lead Settings and ensure that Enable Lead Conversion is turned
on.
2. Map Lead Fields to Account, Contact, and Opportunity Fields:
o In Setup, search for Lead Field Mapping.
o Map relevant fields from the Lead object to the Account, Contact, and Opportunity
fields (e.g., Lead Company -> Account Name, Lead Email -> Contact Email).
3. Test the Lead Conversion:
o Create a test lead and try converting it to an Account, Contact, and Opportunity.
o Ensure that the conversion process works as expected and that the fields are
mapped correctly.
Step 8: Testing and Deployment
1. Test the System:
o Create a few leads manually or import them.
o Ensure they go through the lead assignment, workflow, and validation rules.
o Test the lead conversion to ensure it works properly.
2. Deploy to Users:
o After testing, assign the system to the relevant users and train them on how to use
the Lead Management system, including converting leads and reviewing
reports/dashboards.
Conclusion:
Once you've completed these steps, you'll have successfully created a simple Lead Management
system in Salesforce! You’ll be able to manage leads effectively, automate lead assignment, notify
sales reps, and generate valuable insights through reports and dashboards.
Feel free to adjust the complexity of each step depending on your requirements, but this should give
you a solid foundation to work with.