---
schema_version: "1"
id: 33bf78552d4e8cc69fda10f49722ac7e62c492f05bd74ab8b81a46c50a3ad18e
title: Set Up Assignment Rules
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/creating_assignment_rules.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.creating_assignment_rules.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c84ff3e49e0788b2676d569e3bbe5b70ccaa7484d2533c290ada19886f324715
description: Define conditions that determine how leads or cases are processed. The rules assign leads and cases to the specified user or queue.
products:
  - Service Cloud
release: "264"
---
# Set Up Assignment Rules

Define conditions that determine how leads or cases are processed. The rules assign leads and cases to the specified user or queue.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=service.service_editions_reference.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="vertical-align:top;" id="d139189e60">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e60 ">To view assignment rules:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e60 ">View Setup and Configuration</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e60 ">To create or change assignment rules:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e60 ">Customize Application</td>

          </tr>
        </tbody>
      </table>

1. (Recommended) Choose a user or queue to be the default case owner so that cases are assigned to a specific service rep even if no assignment rules apply. Set the default case owner on the Support Settings page in Setup.
2. From Setup, enter Assignment Rules in the Quick Find box, then select either **Lead Assignment Rules** or **Case Assignment Rules**.
3. Choose **New**, and then give the rule a name. Specify whether you want this rule to be the active rule for leads or cases that are created manually and via the web and email. Then click **Save**.
4. To create the rule entries, click **New**.
    
    For each entry, you can specify:<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:16.7741935483871%">
              <col style="width:83.22580645161291%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d139189e149">Field</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d139189e152">Description</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e149 "><samp class="parmname">Order</samp></td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e152 ">
                  <p>Sets the order in which the entry is processed in the rule, for example,
                    <kbd>1</kbd>, <kbd>2</kbd>,
                    <kbd>3</kbd>.
                  </p>
                  <p style="margin-bottom:0;">Salesforce evaluates each entry in order and tries
                    to match the criteria for the entry. When a match is found, Salesforce assigns
                    the item and stops evaluating the rule entries for that item. If no match is
                    found, the item is reassigned to either the default Web-to-Lead owner, the
                    administrator doing a lead import, or the default case owner.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e149 "><samp class="parmname">Criteria</samp></td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e152 ">
                  <p>Specifies conditions that the lead or case must match for it to be
                    assigned.</p>
                  <p>Enter your rule criteria.</p>
                  <ul>
                    <li> Choose <samp class="parmname">criteria are met</samp> and select the filter
                      criteria that a record must meet to trigger the rule.<span id="creating_assignment_rules__ExampleRuleTrigger"><a name="creating_assignment_rules__ExampleRuleTrigger"><!-- --></a>For example, set a case filter to
                        <kbd>Priority equals High</kbd> if you want case records
                        with the <samp class="parmname">Priority</samp> field marked High to trigger the
                        rule. </span>
                      <p>If your organization uses multiple languages, enter filter
                        values in your organization’s default language. You can add up to 25
                        filter criteria of up to 255 characters each.</p>
                      <p>When you use picklists
                        to specify filter criteria, the selected values are stored in the
                        organization's default language. If you edit or clone existing filter
                        criteria, first set the <samp class="parmname">Default Language</samp> on the
                        Company Information page to the same language that was used to set the
                        original filter criteria. Otherwise, the filter criteria may not be
                        evaluated as expected.</p>
                    </li>

                    <li>Choose <samp class="parmname">formula evaluates to true</samp> and enter a formula
                      that returns a value of “True” or “False.” Salesforce triggers the rule if
                      the formula returns “True.” <span id="creating_assignment_rules__FormulaExampleAssignAndEscalate"><a name="creating_assignment_rules__FormulaExampleAssignAndEscalate"><!-- --></a>For
                        example, the formula <code>AND(ISCHANGED( Priority ), ISPICKVAL
                            (Priority, "High") )</code> triggers a rule that changes the owner of
                        a case when the <samp class="parmname">Priority</samp> field is changed to
                        High.</span>
                    </li>

                  </ul>
                  <p style="margin-bottom:0;">If your condition uses a custom field, the rule entry is deleted
                    automatically if the custom field is deleted.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e149 "><samp class="parmname">User</samp></td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e152 ">
                  <p>Specifies the user or queue that the lead or case is assigned to. Users
                    specified here cannot be marked “inactive”, and they must have “Read” permission
                    on leads or cases. </p>
                  <p>You can't revoke the “Read” permission on leads or cases
                    for users assigned to a rule.</p>
                  <p style="margin-bottom:0;">If your organization uses divisions, leads
                    are assigned to the default division of the user or queue specified in this
                    field. Cases inherit the division of the contact to which they are related. If
                    no contact is specified, cases are assigned to the default global
                    division.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e149 "><samp class="parmname">Do Not Reassign Owner</samp></td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e152 ">Specifies that the current owner on a lead or case will not be reassigned
                  to the lead or case when it is updated.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e149 "><samp class="parmname">Email Template</samp></td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e152 ">Specifies the email template to use for the notification email that is
                  automatically sent to the new owner. If you don’t specify an email template,
                  then Salesforce doesn’t send a notification email. When a lead or case is
                  assigned to a queue, the notification email is sent to the <samp class="parmname">Queue
                    Email</samp> address specified for the queue and all queue
                  members.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e149 "><samp class="parmname">Predefined Case Teams</samp></td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e152 ">
                  <p>Specifies the predefined case teams to add to a case. A case team is a
                    group of people that work together to solve cases. </p>
                  <p style="margin-bottom:0;">To select a predefined
                    case team to add to the assignment rule, click the lookup (magnifying glass)
                    icon. To add more predefined case teams, click <strong class="uicontrol">Add Row</strong>
                    to add a row in which you can specify a predefined case team.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e149 "><samp class="parmname">Replace any existing predefined case teams on the
                    case</samp></td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d139189e152 ">When a case matches the condition, any existing predefined case teams
                  assigned to the case are replaced with the specified case teams.</td>

              </tr>
            </tbody>
          </table>

After creating the entry, click **Save**, or **Save & New** to save the entry and create more entries.

![Tip](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support-264-0-0-production-enus/dd14551c-a772-4db6-9a1d-d84df8df2980/images/icon_tip.png)

Tip Create an error-proof rule by always creating the last rule entry with no criteria. This rule entry is a catch-all rule that assigns any leads or cases that the previous rule entries didn’t assign.

- **[Guidelines for Assignment Rules](https://help.salesforce.com/s/articleView?id=service.customize_leadrules.htm&release=264.0.0&type=5)**  
    Assignment rules automate your organization’s lead generation and support processes. Use lead assignment rules to specify how leads are assigned to users or queues. Use case assignment rules to determine how cases are assigned to users or put into queues.
- **[View and Edit Assignment Rules](https://help.salesforce.com/s/articleView?id=service.editing_assignment_rules.htm&release=264.0.0&type=5)**  
    View and update your assignment rules to meet your business needs.