Reader small image

You're reading from  Salesforce for Beginners - Second Edition

Product typeBook
Published inOct 2022
PublisherPackt
ISBN-139781803239101
Edition2nd Edition
Concepts
Right arrow
Authors (2):
Sharif Shaalan
Sharif Shaalan
author image
Sharif Shaalan

Sharif Shaalan was first introduced to Salesforce as an end user in 2007. His range of experience, from a sales rep to technical architect, helped him successfully lead more than 100 implementations including projects that were showcased on the main stage at Dreamforce. In 2013, Sharif was chosen as a Salesforce MVP, and in 2020 he was inducted into the Salesforce MVP Hall of Fame. Sharif is a regular speaker at Salesforce conferences and has obtained more than 10 Salesforce certifications. He is the founder and CEO of Agile Cloud Consulting and continues to be an active Salesforce community contributor
Read more about Sharif Shaalan

Timothy Royer
Timothy Royer
author image
Timothy Royer

Timothy Royer is the VP of Delivery at Agile Cloud Consulting and a Salesforce Certified Application Architect. Timothy began his Salesforce career in 2012 as an accidental administrator and has since participated in a number of implementations in a variety of roles. Timothy has experience as a Salesforce customer, a Salesforce partner, and as a member of the Salesforce.org professional services team.
Read more about Timothy Royer

View More author details
Right arrow

Assignment Rules

The final automation feature we want to highlight is assignment rules. Assignment rules allow you to automate your lead generation and support processes by helping you control the record’s assignment. Typically, in Salesforce, a lead or case record will be assigned to the person creating the record or to a default user if the lead or case is being created through something such as Web-to-Lead or Web-to-Case. The assignment of records is important since the owner of the record is the person that will work on the specific lead or case to move it along in the process. Assignment rules allow you to set rules that will assign a new lead or case to a specific user or queue based on criteria.

In this chapter, we will cover the following topics in detail:

  • Creating lead assignment rules
  • Creating a queue
  • Creating case assignment rules
  • Assignment rules in action

With the help of these topics, you will be able to understand when...

Technical requirements

For this chapter, log into your development organization and follow along as we create lead and case assignment rules.

Creating lead assignment rules

Lead assignment rules are a great tool for assigning lead records automatically. Knowing the capabilities of lead assignment rules will lead to fewer clicks for your users and quicker business process execution when working with leads. Lead assignment rules are created in the Setup section of Salesforce. Let’s learn how to create a lead assignment rule.

Business use case

You are the Salesforce admin for XYZ Widgets. The sales manager has a use case where any new lead created in Salesforce needs to be assigned to a specific user based on the State/Province field of the lead. Leads with a state/province of New York will be assigned to one user, while leads with a state/province of New Jersey will be assigned to another. Let’s learn how to build this.

Lead assignment rules in action

To create a lead assignment rule, we need to perform a few steps:

  1. Navigate to the Setup page | the Home tab | Feature Settings | Lead...

Creating a queue

In Salesforce, every record has to be owned by a user or a queue. A queue is a group of users who can own records.

From a business perspective, one example is where new leads are placed in a lead queue. Users who are assigned to it can go into the lead queue list view and reassign leads to themselves that they wish to pursue.

Another use case could be when a group of support users is assigned to a case queue. From there these support users can actively go into the case queue list view to reassign cases to themselves. They will then be the owners of any reassigned cases and are responsible for working on these cases.

This concept is very important, as it allows users to complete work in a more efficient manner by providing direct access to assign records and keeping the business process moving.

Business use case

You are the Salesforce admin for XYZ Widgets. The support manager has a use case where a New York Cases queue needs to be...

Creating case assignment rules

Case assignment rules are a great tool for assigning case records automatically. Knowing the capabilities of case assignment rules will lead to fewer clicks for your users and quicker business process execution when working with cases. Case assignment rules are created in the Setup section of Salesforce. Let’s learn how to create a case assignment rule and apply it either to a user or to a queue.

Business use case

You are the Salesforce admin for XYZ Widgets. The support manager has the following use cases for you:

  • Any new case with a State/Province of New York will be assigned to the New York Cases queue
  • Any new case with a State/Province of New Jersey will be assigned to a user

Let’s learn how to build these.

Case assignment rules in action

To create a case assignment rule, we need to perform the following steps:

  1. First, we need to navigate to the Setup page | the Home tab | Service...

Assignment rules in action

Now that we have created a lead and a case assignment rule, let’s see how this looks in action. The assignment functionality works the same way for leads and cases, but we will use cases for our example since the case assignment rule allows us to assign to both a user and a queue. Any case that is created automatically through Web-to-Case or Email-to-Case will trigger the assignment rules. In our examples, we will create the cases directly in Salesforce.

The following screenshot shows the account record we will be using for our test:

Graphical user interface, text, application  Description automatically generated

Figure 18.18: Highlighted areas of an account record

As you can see, we will use the Edge Communications account (1). We will create cases using the two existing contacts, Sean Forbes and Rose Gonzalez (2). I made sure to update Mailing State/Province for Sean Forbes to New Jersey and Mailing State/Province for Rose Gonzalez to New York. These are the criteria the assignment rules will check so that it...

Summary

In this chapter, we learned what an assignment rule is and how to create a lead and a case assignment rule. We learned what queues are and how to assign records to queues using assignment rules. We also understood what rule entries are and how to create multiple rule entries for a single assignment rule. Then, we applied these skills to real-life use cases to help you understand how assignment rules are used within the context of a business.

In the next chapter we will cover advanced data types.

Questions

  1. Besides a user, what else can a case or lead record be assigned to?
  2. How is the sort order used on an assignment rule?
  3. What happens if you don’t choose an email template for a rule entry?
  4. When creating a queue, what is the Queue Email field used for?
  5. If you leave the Queue Email field blank, who gets notified when a record is assigned to a queue?

Further reading

Join our community on Discord

Join our community’s Discord space for discussions with the authors and other readers: https://packt.link/rlptF

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Salesforce for Beginners - Second Edition
Published in: Oct 2022Publisher: PacktISBN-13: 9781803239101
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (2)

author image
Sharif Shaalan

Sharif Shaalan was first introduced to Salesforce as an end user in 2007. His range of experience, from a sales rep to technical architect, helped him successfully lead more than 100 implementations including projects that were showcased on the main stage at Dreamforce. In 2013, Sharif was chosen as a Salesforce MVP, and in 2020 he was inducted into the Salesforce MVP Hall of Fame. Sharif is a regular speaker at Salesforce conferences and has obtained more than 10 Salesforce certifications. He is the founder and CEO of Agile Cloud Consulting and continues to be an active Salesforce community contributor
Read more about Sharif Shaalan

author image
Timothy Royer

Timothy Royer is the VP of Delivery at Agile Cloud Consulting and a Salesforce Certified Application Architect. Timothy began his Salesforce career in 2012 as an accidental administrator and has since participated in a number of implementations in a variety of roles. Timothy has experience as a Salesforce customer, a Salesforce partner, and as a member of the Salesforce.org professional services team.
Read more about Timothy Royer