---
schema_version: "1"
id: 913997a20b7957893543b7af2082ba9fae317439c29dc9162ef19afd30cb968a
title: Create a Scheduling Rule
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/workforce_engagement_scheduling_rules.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.workforce_engagement_scheduling_rules.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 370785f134c4ec0c8c062776e6e8a8dcfe1ceaee138b007e4c51895a5c304059
description: Scheduling rules help the tools match qualified support reps to shifts. Set these rules one time. When the scheduling logic looks for support reps to assign to shifts, it checks your rules.
products:
  - Service Cloud
release: "264"
---
# Create a Scheduling Rule

Scheduling rules help the tools match qualified support reps to shifts. Set these rules one time. When the scheduling logic looks for support reps to assign to shifts, it checks your rules.

### 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>

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

Note Workforce Engagement is scheduled for retirement. See [Workforce Engagement Retirement](https://help.salesforce.com/s/articleView?id=000395130&type=1&language=en_US).

To make the scheduling tools work effectively, a Match Territory scheduling rule is required.

## Scheduling Rule Types

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
          <colgroup>
            <col style="width:50%">
            <col style="width:50%">
          </colgroup>
          <thead class="slds-text-title_caps ">
            <tr class="">
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d86038e73">Type</th>
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d86038e76">Description</th>
            </tr>
          </thead>
          <tbody>
            <tr class="">
              <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e73 ">Availability</td>

              <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e76 ">
                <div>
                  <p>Checks if the service resource is available to be assigned to a shift. An
                    Availability rule checks that there are no other shifts assigned at the same
                    time. In addition, you can select whether an Availability rule: </p>
                  <ul>
                    <li>Considers support reps’ absences</li>
                    <li>Considers support reps’ working hours. Service territory membership—the operating hours that
                      support reps are available to work in their primary or secondary service
                      territories—determines working hours. </li>
                  </ul>
                </div>
              </td>

            </tr>
            <tr class="">
              <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e73 ">Limit Non-Standard Shifts</td>

              <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e76 ">Checks if the service resource has reached the limit for <a href="https://help.salesforce.com/s/articleView?id=service.workforce_engagement_nonstandard_shifts.htm&amp;type=5&amp;language=en_US" target="_blank">non-standard
                  shifts</a>. Specify the limit in a scheduling constraint on each service
                resource or service territory.</td>

            </tr>
            <tr class="">
              <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e73 ">Match Skills</td>

              <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e76 ">
                <p>Checks if the service resource has the appropriate skills to be assigned to
                  the shift. Skill levels aren’t considered. The scheduling logic looks at the skill
                  related list on the service resource and compares it to the skill requirements
                  specified in the shift's job profile.</p>
                <p style="margin-bottom:0;">If you want to schedule using skill
                  levels, create a separate skill for each level. For example, define skills named
                  Claims Level 1, Claims Level 2, and Claims Level 3. Assign these skills to
                  different job profiles and add the right skills to your support reps. For
                  example, assign all three skills to a Level 3 support rep. Scheduling then
                  considers a Level 3 support rep for shifts that have a job profile that requires
                  a Level 1, 2, or 3 skill. </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e73 ">Match Queues (Workforce Engagement only)</td>

              <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e76 ">Checks if the support rep in the service resource record is a member of all
                queues that are mapped to the shift's job profile. Before you can create an
                Omni-Channel plan, <a href="https://help.salesforce.com/s/articleView?id=service.workforce_engagement_jp_to_queue.htm&amp;type=5&amp;language=en_US" target="_blank">map each job profile to the queues that route
                  work assignments</a>.</td>

            </tr>
            <tr class="">
              <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e73 ">Match Territory</td>

              <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e76 ">Required: Checks if the service resource belongs to the shift’s territory.
                The scheduling logic considers the dates and time of service territory membership.
                It also considers the primary and secondary types of territory membership, but
                doesn't consider the relocation type. </td>

            </tr>
            <tr class="">
              <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e73 ">Rest Time in Minutes</td>

              <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e76 ">Checks if the service resource has a minimum rest time between consecutive
                shifts. Define a scheduling constraint with the rest time in minutes and assign it
                to the appropriate service resources or service territories.</td>

            </tr>
            <tr class="">
              <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e73 ">Work Limit</td>

              <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d86038e76 ">Checks if the service resource can handle the work unit maximum. You decide
                if the work unit max is measured in hours or shifts. You choose a specific
                scheduling constraint to define the type of work required. And you decide if the
                max is per day, week, or month. You can create custom scheduling
                constraints.</td>

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

## Create a Scheduling Rule

Create a Match Territory rule and any other scheduling rules that you want.

1. From Setup, in the Quick Find box, enter Workforce Engagement Management, select **Scheduling**, and then select **Rules**.
2. Click **New**.
3. Name your scheduling rule and add a description.
4. Select the rule type. If the rule uses a scheduling constraint, select the constraint. To add a custom constraint, use the Object Manager and add a custom field on the Scheduling Constraint object.
5. Click **Save**. Or to save and add more rules, click **Save and New**.

Shift scheduling tools, including get candidates, batch assignment, and mass shift update, then check your rules when matching support reps to shifts. When the scheduling logic looks for support reps to assign to shifts, it considers only support reps that pass all of the rules.

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

Example

To limit the number of hours that a support rep can work each day, create a rule of type Work Limit. Your rule can check a scheduling constraint on a service resource or service territory to see if the support rep has reached the limit for assigned shift hours in a single day.