- AppAssessor
Articles by role:
- Consultants
- Business Analysts
By Lucy Mazalon
By Ben McCarthy
- Courses Login
What’s trending
How Does Salesforce’s Agentforce Work?
SF Ben Salesforce Salary Survey Results 2024-25
Salesforce’s New Free AI Certifications: Your Guide to Courses and Premium Training
Salesforce Agentforce: How Autonomous Agents Could Revolutionize Sales
Salesforce Outlook Integration To Be Disrupted via New Microsoft Initiative
UPCOMING EVENTS
Elevate your salesforce devops lifecycle with test automation, we dreamin’ ok.
Oklahoma, OK
Forecasting Complex Revenue Models in Salesforce
Salesforce data resilience in a multi-cloud world, automated activity capture: best practices for private capital, salesforce lead assignment rules best practices and tricks.
By Stacy O’Leary
I confess: I love Salesforce Lead Assignment Rules almost as much as I love the Approval Process . A good set of Lead Assignment Rules will buy you endless friends in both sales and marketing, and will make your incoming data sparkle and look perfect (even if it is not!) In this guide, I’ll be talking about the initial Lead sort, upon creation.
Salesforce Lead Assignment Rule Example
- Criteria #1: If State = California, assign to Stacy
- Criteria #2: If Country = United Kingdom, assign to Ben
- Criteria #3: If Country = France, assign to Lucy
- Criteria #4: If Annual Revenue is greater than $500,000,000 USD, assign to “High Roller Queue”
Planning Lead Assignment Rules
Discovery: questions to ask.
- Where are the new Leads coming from? Marketo? HubSpot? Other integrated systems? Web forms? Are there any examples you look at? Make friends with the people who run these systems, you need to have a good relationship because you’re going to need their help.
- What fields are populated on these newly created Leads? What fields are required? If it’s minimal, can you get more information? Generally, the more information you have, the easier it is to sort.
- What if a Lead comes in from one of your Partners? What if a Lead comes in from one of your competitors? From one of your employees? Are there any kinds of Leads that should never be distributed out to your team, like students or media inquiries? (Remember – ANYONE with access to the internet can fill out your form! They do not have to be a legitimate prospect!)
- Who is covering what territories? Do you have any territories that don’t have a sales rep yet? Do all new Leads have enough data to determine territories?
- What about the Leads that don’t meet any criteria at all? Where will they go? Who will work them?
Refining the requirements
- Our new Leads, almost always, come from Marketo . They could come from a Marketo form, or a list imported from a trade show, but Marketo is the system that pushes them to Salesforce. If a person creates their own Lead, we do not want to take it away from them.
- We always have: first name, last name, lead source, email, company, state and country. We sometimes have # of Employees, but that’s pretty much all we know about them at the moment of creation.
- Any Lead that comes in from a Partner should be directed to our channel team. We don’t want to market to competitors, employees, or students.
- We have a territory plan defined by Sales, and we’d also like to separate prospects for the UK and France, though we do not have a sales rep for those areas yet.
- If something comes in that we cannot otherwise sort, let’s put it in a holding place and let marketing send out generic nurture emails. If a person in this holding place takes interest, we can always give it to the sales team later.
Western US | Eastern US + Canada | UK + France | |
---|---|---|---|
# of Employees | Maeve Easton | To Be Determined | |
# of Employees >=5,000 | Jessica Harris | Dylan Wolfe | To Be Determined |
- Partners (any Lead that comes in from a Partner company)
- Disqualified (any Lead that comes in from a competitor, is an employee, or is a student)
- UK + France (any Lead where Country = United Kingdom, or France)
- Unsorted (any Lead that does not meet any criteria)
Creating Lead Assignment Criteria
Leads that shouldn’t be distributed, next criteria.
The Final Empty Criteria
Activate the Lead Assignment Rules
- Leads can only be sorted by a field value at the moment it was sorted.
- The Lead Router does not auto-convert Leads to Contacts
- You cannot deactivate a User license if that person is part of the Lead Assignment Rules (even if the Lead Assignment Rules have been deactivated.)
- Create a report for yourself, for that last criteria – Leads that are unsorted. This way you can review them periodically and see if there’s enough volume to justify sorting them in a certain way.
Stacy O'Leary
More like this:
Salesforce account plans: the new feature your sales users will love.
By Andreea Doroftei
The Ultimate Guide to Heroku and Salesforce Integration
By Richa Pokhriyal
How to Set Up Gamification in Salesforce Experience Cloud to Boost Engagement
By Olesia Melnichenko
Leave a Reply Cancel reply
Save my name and email in this browser for the next time I comment.
Automation Champion
Automating Salesforce One Click at a Time
Running Lead Assignment Rules From Salesforce Flow
Last Updated on February 14, 2022 by Rakesh Gupta
To understand how to solve the same business use case using Process Builder . Check out this article Getting Started with Process Builder – Part 49 (Running Lead Assignment Rules From Process Builder) .
Big Idea or Enduring Question:
How do you run the lead assignment rule from the Salesforce flow? Lead assignment rules allow us to automatically assign Leads to the appropriate queue or user. A Lead assignment rule consists of multiple rule entries that define the conditions and order for assigning cases. From a Salesforce User interface, a user can trigger assignment rules by simply checking the Assign using the active assignment rules checkbox under the optional section.
The problem arises when you need to insert or update the Leads from Salesforce Flow and wants to trigger assignment rules. Using the Salesforce Flow a Lead will be inserted or updated but the assignment rule will not be triggered as there is no check box to use the organization’s assignment rule or a prompt to assign using the active assignment rule.
Let’s start with a business use case.
Objectives:
After reading this blog post, the reader will be able to:
- Running the lead assignment rules from Salesforce Flow
- Understand @InvocableMethod Annotation
- How to call an Apex method using Salesforce Flow
Business Use Case
Pamela Kline is working as a System administrator at Universal Containers (UC) . She has received a requirement from the management to update the following Lead fields when Lead Source changed to Partner Referra l .
- Status = Working – Contacted
- Rating = Hot
As data changed by the process, she wants to fire the assignment rule as soon as the process updates the lead record.
Automation Champion Approach (I-do):
Guided Practice (We-do):
There are 4 steps to solve Pamela’s business requirement using Salesforce Flow and Apex. We must:
- Setup a lead assignment rule
- Create Apex class & Test class
- Define flow properties for record-triggered flow
- Add a decision element to check the lead source
- Add an assignment element to update status & rating
- Add a scheduled path
- Add a decision element to check if lead source changed
- Add action – call an Apex class to invoke lead assignment rule
Step 1: Setting Up Lead assignment Rule
- Click Setup .
- In the Quick Find box, type Lead Assignment Rules .
- Click on the Lead Assignment Rules | New button .
- Now create an assignment rule, as shown in the following screenshot:
Step 2: Create an Apex class and Test class
Now, we have to understand a new Apex annotation i.e . @InvocableMethod . This annotation lets us use an Apex method as being something that can be called from somewhere other than Apex . The AssignLeadsUsingAssignmentRules class contains a single method that is passing the ids of the Leads whose Lead Source changed to Partner Referral . Create the following class in your organization.
- In the Quick Find box, type Apex Classes .
- Click on the New button .
- Copy code from GitHub and paste it into your Apex Class.
- Click Save.
Step 3.1: Salesforce Flow – Define Flow Properties for Before-Save Flow
- In the Quick Find box, type Flows .
- Select Flows then click on the New Flow .
- How do you want to start building : Freeform
- Object : Lead
- Trigger the Flow When : A record is created or updated
- Condition Requirements: None
- Optimize the Flow For : Fast Field Updates
- Click Done .
Step 3.2: Salesforce Flow – Using Decision Element to Check the Lead Source
Now we will use the Decision element to check the lead source to ensure that it is equal to Partner Referral.
- Under Toolbox , select Element .
- Drag-and-drop Decision element onto the Flow designer.
- Enter a name in the Label field; the API Name will auto-populate.
- Under Outcome Details , enter the Label the API Name will auto-populate.
- Resource: {!$Record.LeadSource}
- Operator: Equals
- Value: Partner Referral
- When to Execute Outcome : Only if the record that triggered the flow to run is updated to meet the condition requirements
Step 3.3: Salesforce Flow – Adding an Assignment Element to Update Rating and Status
- Drag-and-drop the Assignment Element element onto the Flow designer.
- Enter a name in the Label field- the API Name will auto-populate.
- Field: {!$Record.Rating}
- Add Condition
- Field: {!$Record.Status}
- Value: Working – Contacted
- Click Save .
- Enter Flow Label the API Name will auto-populate.
- Click Show Advanced .
- API Version for Running the Flow : 53
- Interview Label : Record-Trigger: Lead Before Save {!$Flow.CurrentDateTime}
Step 4.1: Salesforce Flow – Define Flow Properties for After-Save Flow
- Field : Lead Source
- Operator: Euqals
- Optimize the Flow For : Action and Related Records
Step 4.2: Salesforce Flow – Add Scheduled Paths
- Under SCHEDULED PATHS , click on the New Scheduled Path .
- Under Scheduled Path Details , enter the Label the API Name will auto-populate.
- Time Source : Lead: Last Modified Date
- Offset Number : 1
- Offset Options : Minutes After
Step 4.3: Salesforce Flow – Adding an Action to Call Apex class to Trigger Lead Assignment Rule
- Drag-and-drop the Actions element onto the Flow designer.
- Select the AssignLeadsUsingAssignmentRules Apex class.
- Field: LeadIds
- Value: {!$Record.Id}
- Interview Label : Record-Trigger: Lead After Save {!$Flow.CurrentDateTime}
Proof of Concept
Now onward, if a business user updates the Lead Source to Partner Referral , Process Builder will automatically update Status , Type , and Assign it to the right user or queue based on the lead assignment rule.
Monitor Your Schedule Flow
To monitor Flows that are scheduled, navigate to the following path:
- Navigate to Setup (Gear Icon) | Environments | Monitoring | Time-Based Workflow .
- Use the Delete button to delete the time-based Flow job from the queue.
Formative Assessment:
I want to hear from you! What is one thing you learned from this post? How do you envision applying this new knowledge in the real world? Let me know by Tweeting me at @automationchamp , or find me on LinkedIn.
Submit Query!
Similar Posts
Elevate Your Screen Flows with a Customizable Counter Component
Dynamic Progress Bar for Form Completion in Salesforce Flow
Launch a Flow from CRM Analytics Dashboard Text Widget
9 thoughts on “ running lead assignment rules from salesforce flow ”.
It ran repeatedly, every minute, over and over again. I was getting notification email every minute when testing. I did the same steps as you mentionned, with a record triggered flow containing the apex action.
I found that this ran repeatedly, every minute, over and over again. Was easy to spot because I modified the Apex to include sending the user notification email as well – so I was getting notification email every minute when testing.
When I updated the ‘Time Source’ in the flow scheduled path from ‘Time Source: Lead: Last Modified Date’ to ‘Time Source: When Lead is Created or Updated’ that seems to have solved the problem.
Was curious if you had the same experience or if there was some other nuance happening.
It also looks like you had originally intended to use a decision element in step 4.3 but changed that to flow entry requirements, likely because the scheduled path can’t assess the prior and current values the same way the starting node can.
Thank you for sharing your valuable feedback. I have a quick question for you: When executing the Apex class, do you utilize a Record-triggered Flow or a Scheduled-triggered Flow?
after the apex class fires, noticed the lead owner is assigned to default lead owner, instead of using lead assignment rule. Any clue?
Thank you for an excellent tutorial 🙂 you solved my problem! Very much appreciated
Anyone getting issues with an error on mass updates “Apex error occurred: System.QueryException: List has more than 1 row for assignment to SObject “? if each one is called individually, I don’t understand how there is more than 1 row for assignment. Sometimes I get an email with this error only to see that the trigger actually worked for the specified record so a bit odd. Thanks!
Thank you for the great tutorial. Why add the 1 minute wait? Is that just to take avoid too much synchronous automation? Or is it required for another reason?
You’re right Kevin (to make the process asynchronous).
- Pingback: Getting Started with Process Builder – Part 49 (Running Lead Assignment Rules From Process Builder) - Automation Champion
Leave a Reply Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed .
Discover more from Automation Champion
Subscribe now to keep reading and get access to the full archive.
Type your email…
Continue reading
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Turning off lead assignment rules in triggers not working?
I've a rest resource in apex which upserts leads based on the lead phone number but the problem is when lead owner is changed manually from UI and again it is updated from apex rest resource the assignment rules are firing, but i don't want to fire the rules and i want to fire the rules only when created.
For that i wrote a before trigger to turn off the rules for updates but it is not working
the lead assignment rules are firing though they are turned off.
how to resolve this ?
- lead-assignment
You can't change the behavior from inside the trigger. The DML options are set from the calling context and will apply for the entire transaction. You'll have to fix the problem upstream.
- Thnx @sfdcfox how do i set in apex code to run assignment rules only when record is created as i'm using the upsert operation explicitly – bnthsrikanth Commented Jan 12 at 19:17
- @bnthsrikanth You'll want to query to see if the record exists first. – sfdcfox ♦ Commented Jan 12 at 19:19
- Thnx @sfdcfox for the suggestion – bnthsrikanth Commented Jan 12 at 19:26
You must log in to answer this question.
Not the answer you're looking for browse other questions tagged apex trigger apexrest dml lead-assignment ..
- The Overflow Blog
- Brain Drain: David vs Goliath
- How API security is evolving for the GenAI era
- Featured on Meta
- Preventing unauthorized automated access to the network
- Upcoming initiatives on Stack Overflow and across the Stack Exchange network...
Hot Network Questions
- Card design with long and short text options
- What would happen if a natural disaster occurred on election Day?
- Is it possible for an overly frugal culture to have high economic growth?
- Difference between "play your cards right" and "on the right track"
- Why does a Fenestron tail rotor require so much speed compared to an open rotor?
- Using proportions as a measure of nest success in a glmm
- My previous advisor wrote that I'm not creative in his recommendation letter
- According to Eastern Orthodoxy does God have a soul?
- What is the use of the variable `B%` in DONKEY.BAS written by Bill Gates?
- How can a Kenyan Deputy President challenge his impeachment after it passed the Senate?
- Task assignment: Equitable and Fair work distribution
- Statistical test for count values
- How do we distinguish between "not filled in" and "unknown" in our data store?
- How do I tame the "tongue bite" in my tomato-based meals?
- Why is 1 ppm considered equal to 1 mg/dm3?
- Can cropped images that came from innocent photos be considered illegal?
- Niko, Light of Hope and creature-land interaction
- What is this new iOS status symbol?
- Local indexed variables in With
- How does speed telemetry displayed in SpaceX live videos work?
- Fraction with a numerator having a long exponent
- His broad face beamed a hearty welcome
- OpenLayers: the radius of a programmatically constructed circle does not match the measured radius
- Why helicopters don't use complete tail rotor guard?
Guide to lead assignment rules in Salesforce
Use SFDC lead assignment rules to get more done, create a better experience, and close deals faster.
Rachel Burns Jul 24, 2023
15 min read
Table of contents
Experience scheduling automation for yourself!
Create a Calendly account in seconds.
What are Salesforce lead assignment rules?
What if your sales team could spend their valuable time connecting with prospects and closing deals — instead of losing time doing admin work like assigning and organizing leads?
When you automate lead assignment and routing, your sales team can:
Boost sales team productivity and efficiency
Prevent high-quality leads from slipping through the cracks
Create a better experience for potential customers
Speed up your entire sales pipeline to close more deals, faster
In this blog post, we'll discuss the ins and outs of Salesforce lead assignment. We'll cover the benefits, how to plan your lead assignment strategy, and a step-by-step walkthrough of adding lead assignment rules in Salesforce. We'll also explore the power of scheduling automation to simplify and speed up lead assignment, routing, and qualification.
Key takeaways:
Lead assignment rules help sales teams boost productivity, respond to leads faster, and make better data-driven decisions.
Matching leads with the right sales reps and teams creates a better customer experience by responding to leads faster and giving them personalized attention.
Before you set up your lead assignment rules, work with your sales, marketing, and RevOps teams to understand your lead generation processes and sales team structure.
Within Salesforce lead management settings, rule entries are the individual criteria and actions. A “lead assignment rule” refers to a set of rule entries.
Automating lead routing , qualification, and booking with Calendly helps your team be more efficient and organized while creating a better experience for prospective customers.
6 benefits of creating lead assignment rules in Salesforce
Why should your team take the time to set up lead assignment rules in Salesforce? Here are six great reasons:
Ensure leads are assigned to the right reps and teams: Lead assignment rules mean each incoming lead is directed to the salesperson or team who has the relevant expertise and skills to engage and convert that lead. Automated lead assignment also prevents leads from falling through the cracks by making sure each lead is assigned to a rep or team, rather than relying on manual assignment.
Respond to leads faster: With lead assignment rules, leads are automatically assigned to the right salesperson, reducing response time and increasing the chances of converting leads into customers .
Boost sales team productivity: Automating lead assignment reduces manual work for RevOps teams and sales managers. Lead assignment rules also help identify and prioritize leads more likely to convert, saving time and resources that would otherwise be wasted on pursuing poor-fit leads. These time savings let sales teams focus on nurturing leads and closing deals.
Create a better customer experience: Leads can be assigned to sales reps who have relevant industry or product expertise, understand their unique needs, and can provide personalized solutions. This tailored approach creates a better experience for leads, which results in more conversions and higher customer satisfaction.
Improve sales forecasting: With well-defined lead assignment rules, you can gather more accurate data on lead distribution and conversion rates. This data can be used for sales forecasting, data driven decision-making, and resource allocation.
How to create lead assignment rules in Salesforce
Step 1: build your lead assignment strategy.
Before you go into your Salesforce instance and set up lead assignment rules, you need to figure out what exactly those rules will be. The options are limitless — where should you start?
It’s time to bring RevOps, sales, and marketing together to answer some questions:
Lead sources: Where do leads come from? Do we use marketing forms through Salesforce web-to-lead forms or a third-party integration? Are we importing leads via the data import wizard?
Sales team structure: How is the sales team structured? Are different teams or individuals specialized in specific products, industries, use cases, or regions?
Lead data: What info do we request from new leads? Which standard and custom fields do we require?
Sales territories: How are sales territories defined? Are there specific regions, countries, or territories we should take into account for lead assignment?
Integrations : Do we have any third-party integrations with lead assignment or distribution features? Are we using those features?
Special circumstances: Are there any priority levels or tiers for leads that require special attention? For example, do we have a designated rep or queue for leads with complex needs and use cases?
Poor fits: What should we do with leads who don’t meet any of our criteria?
It’s a lot of information to gather and organize, but it’s important to learn as much as possible up front to cover every scenario and equip your sales team with accurate data. Putting this time and effort in now will pay off tenfold in productivity once your lead rules are in place!
Step 2: Set up lead assignment rules in Salesforce
You’re almost ready to enter your lead assignment rules in SFDC . First, let’s go over some terminology. We’ve been talking about lead assignment rules as individual directives: “If the lead matches X, then do Y.” Within Salesforce lead management settings, a “lead assignment rule” refers to a set of rule entries. Rule entries are the individual criteria and actions (“If X, then do Y”). An assignment rule can consist of up to 3,000 rule entries, and you can only have one active assignment rule at a time.
For example, a rule entry can assign all leads interested in a particular product to a queue of reps who are experts on that product. In Salesforce, a lead queue is essentially a bucket for unassigned leads, and you can choose which sales reps can pull leads from each queue.
Another rule entry can assign all leads from companies with over 5,000 employees to your top enterprise sales rep.
To create a lead assignment rule in Salesforce:
From Setup, enter “Assignment Rules” in the Quick Find box, then select Lead Assignment Rules.
Enter the rule name. (Example: 2023 Standard Lead Rules)
Select “Set this as the active lead assignment rule” to activate the rule immediately.
Click Save.
Click the name of the rule you just created.
Click New in the Rule Entries section.
Enter an order number that tells Salesforce when to run this rule entry in relation to other rule entries. For example, if you want this to be the first criteria Salesforce looks at when assigning a lead, enter number one.
Select the rule criteria. What attributes must the lead have before Salesforce applies the rule entry? You can use any standard or custom field in the lead record for your criteria. For example, you want to assign leads to your U.S.-based enterprise sales team, so the company size field must be equal to or greater than 5,000 and the country field must equal the United States. You can include up to 25 filter criteria.
Choose the user or queue to be the assignee if the lead meets the criteria. For example, assign to the U.S.-based enterprise sales team queue.
Optional: Choose an email template to use when notifying the new lead owner. After you set up your lead rules, you can also use Salesforce Flow automations to notify lead owners via other channels. For example, at Calendly, we integrate Salesforce with Slack, and a workflow automatically notifies sales reps via Slack when a lead is assigned to them.
Salesforce goes through the rule entries in order until it finds one that matches the lead's info, then routes the lead accordingly.
Let's say you have small business, mid-market, and enterprise sales team queues. Your first three rule entries would match company size to each of those three queues. If they don't have a company size listed, or the company size doesn't match any of the values in your rule entries, Salesforce will move on to the industry rule entries.
To make sure no leads fall through the cracks, you also need to set a default lead owner. If the assignment rules fail to locate an owner, or you don’t set up assignment rules, web-generated leads are assigned to the default lead owner.
To select a default lead owner:
From Setup, enter “Lead Settings” in the Quick Find box, then select Lead Settings and click Edit.
Define the Default Lead Owner. The Default Lead Owner can be a specific user or a queue.
Save your settings.
Salesforce lead assignment rule examples
As we mentioned earlier, your rule entries can include up to 25 filter criteria.
Simple rules include just one filter criteria:
By country or state/province: Route leads from specific states or countries to sales representatives who understand the regional market. You need this rule if your team uses sales territories to divide leads. For example, if the state/province equals Alaska, Arizona, California, Hawaii, Nevada, Oregon, or Washington, assign the lead to the West Coast queue.
By language: Assign leads to sales reps who speak the same language.
By industry: Assign leads from different industries to salespeople who have experience working with those industries.
By company size: Assign leads based on the size of the company, assigning larger companies to a dedicated enterprise sales team.
Complex rules use two or more filter criteria. For example, you could route leads from specific states or provinces to salespeople based on their sales territory and the company size. If you have a particular rep (Bob) working enterprise leads on the West Coast, your filter criteria could say: If the state/province equals Alaska, Arizona, California, Hawaii, Nevada, Oregon, or Washington, and the company size equals greater than 5,000, assign the lead to Bob.
These are just a few examples. Lead assignment rules can be customized to fit your team’s and customers’ needs. Review your strategy to choose the right combination of criteria for your sales processes, products, and customers.
What does the built-in Salesforce lead process look like in action?
A website visitor named Nora fills out a contact form to learn more about your product. She shares her name, email address, company name (Acme Inc.), and company size. You use Salesforce’s built-in web-to-lead forms , so Nora’s form submission automatically creates a lead record.
Your team has set up lead assignment rules that assign leads to sales queues based on their company size. Acme Inc. has 5,000 employees, so Nora is automatically assigned to the enterprise sales team queue.
Enterprise sales team queue members receive an email notification that a new lead has been added to the queue. Taylor, an enterprise sales rep in Acme Inc.’s territory, assigns Nora’s lead record to themself.
Taylor emails Nora to set up a qualification call.
Nora, who has been waiting to hear back from your team, agrees to meet with Taylor. After some email back-and-forth, they find a time that works.
What are the limitations of Salesforce’s built-in lead assignment rules?
Salesforce’s built-in lead assignment rules are a great place to start, but there are a few critical limitations, especially for enterprise sales teams:
Single level of evaluation: Salesforce assignment rules operate based on a single level of evaluation, meaning that once a rule matches the criteria and assigns a lead, the evaluation process stops. Your team might miss out on important info, like a complex use case or unique industry, when matching the lead with a rep.
No built-in round robin distribution: Round robin lead distribution is the process of assigning leads to reps based on factors like team member availability or equal distribution for a balanced workload. Salesforce lead assignment rules don't include an easy way to set up round robin distribution — you need an additional tool like Pardot, one of the round robin apps on AppExchange , complex Apex code , or a third-party lead routing platform .
No lead escalation settings: Lead escalation is the process of flagging a lead to higher levels of management or specialized teams for further assistance or action. This process comes into play when a lead requires additional attention or intervention beyond the assigned salesperson or team's capabilities. Unfortunately, Salesforce doesn’t have built-in settings for lead escalation rules. If your customer success team uses Service Cloud, you can set up escalation rules for customer support case escalations, but this feature isn’t included in Sales Cloud.
High maintenance for large organizations: Managing and maintaining a comprehensive set of assignment rules can become challenging and time-consuming in large organizations with complex sales structures and multiple teams or regions. Sure, you can include up to 3,000 rule entries in a single lead assignment rule, but that’s a lot to set up and keep up to date — especially if you’re trying to save your team time, not add to their workload.
Built-in Salesforce lead assignment rules and automations are a solid starting point, but what about automating lead qualification and booking? If you use Salesforce on its own, your reps might still spend a ton of time on lead reassignment to balance their workload, manual lead qualification, and email back-and-forths to schedule sales calls.
That’s where Calendly comes in.
How to automate lead assignment, qualification, and booking with Calendly
Your scheduling automation platform can be an excellent lead generation, qualification, and routing tool — especially when it integrates with Salesforce. Calendly’s Salesforce integration helps your team be more efficient and organized while creating a better experience for prospective customers.
When a lead books a meeting via a sales rep or team’s Calendly booking page, Salesforce automatically creates a new lead, contact, or opportunity. If the lead already exists in your Salesforce instance, the event is added to the lead’s existing record, so you don’t end up with duplicate lead records or time-consuming manual reassignment.
What if you don’t want to let just anyone book a meeting with your team? When you add Calendly Routing to your marketing forms, you can show scheduling pages only to leads who meet your qualifications, like prospects from specific industries or companies of a certain size. That way, your busy team can spend time on the most valuable deals.
Calendly Routing works with HubSpot , Marketo , Pardot , and Calendly forms and is built for your Salesforce CRM. You can use any form field (email, domain, company name) in any Salesforce standard object to match visitors with their account owner. Account lookups let you send known leads or customers from your website form directly to their account owner’s booking page, without needing to manually reassign leads to the right rep.
Remember the lead assignment example we walked through earlier featuring Nora from Acme Inc.? Here's what that process looks like when you add Calendly:
Nora fills out your “contact sales” form, which is already built in HubSpot, connected to Calendly Routing , and enriched with Clearbit .
She enters her email address in the form, and Clearbit fills in the company name, size, and industry. This shortens the form, so Nora only has to input her name and job title.
Calendly checks to see if Acme Inc. has an account in your Salesforce instance. They don’t, so the next step is lead qualification .
Based on Nora’s information — company size, industry, job title — she’s a highly qualified lead, so she’s automatically routed to the booking page for your enterprise sales team.
Nora is happy about that, and immediately books a meeting time that works for her, with the exact team she needs to talk to.
On the backend, Calendly’s Round Robin meeting distribution is set to optimize for availability, so it assigns the meeting to the first available sales rep — in this case, Taylor. This automation helps your team respond to meeting requests faster, hold initial sales calls sooner, and balance the workload across reps.
Calendly creates a lead record in Salesforce with the info Nora entered into your website form (including the data from Clearbit) and an activity log of any meetings she books with your team via Calendly. Salesforce automatically makes Taylor the lead owner.
If you were relying on Salesforce’s built-in lead assignment rules, Nora’s lead record would have gone to an enterprise sales queue, and she would have had to wait for a rep to pick up the lead and reach out to her to book a meeting.
“ A good tool is one that’s so simple, sales reps can basically forget about it and let the meetings roll in. That’s essentially what happened when we implemented Calendly. ”
Sales Enablement Manager at SignPost
What happens if a lead doesn’t qualify for a meeting? Instead of sending them to a booking page, you can display a custom message with next steps, ask them for more information, or redirect them to a specific URL, like a piece of gated content or a webinar signup page.
Automating lead assignment with Calendly Routing has been a game changer for RCReports , a compensation analysis solution for accountants and business valuators. Before connecting Calendly Routing with their Salesforce instance, RCReports’ AEs spent at least five hours a month reassigning leads booked on the wrong calendar. This created a disjointed customer experience and frustration for the sales and marketing teams.
“ Now that we’ve implemented Calendly’s routing feature with Salesforce integration, demos are always booked with the correct AE, reducing friction for both our team and the customer. ”
Abbie Deaver
Director of Marketing at RCReports
Users on Calendly’s Teams plan and above can connect Calendly to Salesforce. The full suite of Salesforce routing features , including routing by Salesforce ownership, is available on Calendly’s Enterprise plan.
To learn more about Calendly Routing, get in touch with our sales team .
Spend less time on manual lead assignment and more time closing deals
When you automate Salesforce lead assignment and routing, high-value leads stop slipping through the cracks, the workload is balanced across the team, leads are matched with the sales reps best equipped to help them, and team members have more time to focus on connecting with prospects and closing deals.
The results? A more productive team, faster sales cycle, higher conversion rates, and better customer experience.
Webinar: How Calendly Uses Calendly to Close More Deals
Rachel Burns
Rachel is a Content Marketing Manager at Calendly. When she’s not writing, you can find her rescuing dogs, baking something, or extolling the virtue of the Oxford comma.
Related Articles
Read Time: 15 minutes
How to shorten your sales cycle and close more deals with Calendly
Learn how Calendly keeps meetings moving forward, so you can close more deals, faster.
How to write sales follow-up emails that keep deals moving
Connect with prospects and close deals faster with these follow-up email tips and templates.
How to prep for a sales demo with confidence
Real-world tips to tackle discovery, create agendas, and manage pre-demo anxiety.
Don't leave your prospects, customers, and candidates waiting
Calendly eliminates the scheduling back and forth and helps you hit goals faster. Get started in seconds.
IMAGES
VIDEO
COMMENTS
Salesforce Lead Assignment Rules are a numbered set of distribution rules that determine which owner a Lead record should be assigned (either a specific user or to a Salesforce Queue).
A recently created or updated Case or Lead Assignment Rule isn't setting the Owner on new or edited Case or Lead records that appear to perfectly match the rule's criteria or formula conditions, but ownership is not being assigned.
I have created a single (there are no others) lead assignment rules. It routes incoming leads from Hubspot (ebooks, demo requests, case study downloads etc) to our lead gen person. The rule works correctly in the sense that it is assigning the correct leads 100% of the time.
You need to check the checkbox in queue "Send Email to Members" as well as the checkbox in assignment rule "Email", by selecting an Email Template in your assignment rule.
When testing and creating leads manually, or updating existing leads, they do not get assigned a new owner based on my newly created Lead Assignement rule? I just wanted to get some thoughts as to why this might be happenening here?
Using the Salesforce Flow a Lead will be inserted or updated but the assignment rule will not be triggered as there is no check box to use the organization’s assignment rule or a prompt to assign using the active assignment rule. Let’s start with a business use case.
Lead Assignment Email Notification not getting triggered when the Assignment Rule is fired from APEX
Assignment rules automate your organization’s lead generation and support processes. Use lead assignment rules to specify how leads are assigned to users...
The lead trigger is not firing the email if we invoke assignment rules via API update. Steps to Reproduce. 1. Create a fresh org. 2. Create Test user ( Make sure you add your email address ) 3. Create a checkbox called 'change ownership' on the Lead object. 4. Create a Trigger on lead Object using the below code.
We'll cover the benefits, how to plan your lead assignment strategy, and a step-by-step walkthrough of adding lead assignment rules in Salesforce. We'll also explore the power of scheduling automation to simplify and speed up lead assignment, routing, and qualification.