---
schema_version: "1"
id: 281bccdb70850aef622d3ab0ddd76870c24c29f32943610ff41be2b072027aef
title: Appointment Insights Work Rules
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/pfs_appointment_insights_view_recommendations.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.pfs_appointment_insights_view_recommendations.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cdb42650ffd4a5522525b72b7ec289b5e0ed2775d67875040d4dd9d48df2ef33
description: Review the work rules that Appointment Insights refers to.
products:
  - Field Service
release: "264"
---
# Appointment Insights Work Rules

Review the work rules that Appointment Insights refers to.

### 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;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">The Field Service core features, managed package, and mobile app are available in <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions.</td></tr></tbody></table>

![Package icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/support_field_service/images/fs_package.png) _This is a Field Service managed package feature._

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d47215e82">Work Rule</th>
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d47215e85">Rule Violation</th>
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d47215e88">Recommendation</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Work Rule" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e82 ">
              <a href="https://help.salesforce.com/s/articleView?id=service.pfs_optimization_theory_work_rules_extended_match.htm&amp;type=5&amp;language=en_US" target="_blank">Extended Match</a>
            </td>

            <td data-label="Rule Violation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e85 ">A violation occurs when there are no available candidates who meet the criteria
              of the Extended Match rule.</td>

            <td data-label="Recommendation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e88 ">Verify that you have one or more candidates that match the service appointment’s
              required values based on the criteria of the Extended Match rule.</td>

          </tr>
          <tr class="">
            <td data-label="Work Rule" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e82 "><a href="https://help.salesforce.com/s/articleView?id=service.pfs_optimization_theory_work_rules_match_boolean.htm&amp;type=5&amp;language=en_US" target="_blank">Match Boolean</a> Custom Rule</td>

            <td data-label="Rule Violation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e85 ">A violation occurs when there are no available candidates who meet the criteria
              of the Match Boolean custom work rule.</td>

            <td data-label="Recommendation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e88 ">Verify that the Match Boolean custom rule is defined correctly. If possible,
              remove this rule.</td>

          </tr>
          <tr class="">
            <td data-label="Work Rule" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e82 "><a href="https://help.salesforce.com/s/articleView?id=service.pfs_optimization_theory_work_rules_match_fields.htm&amp;type=5&amp;language=en_US" target="_blank">Match Fields</a> Custom Rule</td>

            <td data-label="Rule Violation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e85 ">A violation occurs when there are no available candidates who meet the criteria
              of the Match Fields custom work rule.</td>

            <td data-label="Recommendation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e88 ">Verify that the Match Fields custom rule is defined correctly. If possible,
              remove this rule.</td>

          </tr>
          <tr class="">
            <td data-label="Work Rule" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e82 ">
              <a href="https://help.salesforce.com/s/articleView?id=service.pfs_optimization_theory_work_rules_match_skills.htm&amp;type=5&amp;language=en_US" target="_blank">Match Skills</a>
            </td>

            <td data-label="Rule Violation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e85 ">A violation occurs when there are no available candidates who possess the
              required skills and skill level listed on the service appointment’s parent Skill
              Requirement record.</td>

            <td data-label="Recommendation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e88 ">Verify that the service appointment’s parent Skill Requirement record lists the
              correct required skills and skill level, and ensure that your service resources’
              assigned skills and skill levels are up to date. If there are still no available
              candidates, train your service resources to meet the required skills or skill
              level.</td>

          </tr>
          <tr class="">
            <td data-label="Work Rule" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e82 ">
              <a href="https://help.salesforce.com/s/articleView?id=service.pfs_optimization_theory_work_rules_match_territory.htm&amp;type=5&amp;language=en_US" target="_blank">Match Territory</a>
            </td>

            <td data-label="Rule Violation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e85 ">A violation occurs when there are no available candidates who are Primary or
              Relocation members of the service appointment’s service territory.</td>

            <td data-label="Recommendation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e88 ">After Appointment Insights verifies that candidates in neighboring territories
              are available, remove the Match Territory work rule from your scheduling policy, and
              add the Maximum Travel from Home rule instead.</td>

          </tr>
          <tr class="">
            <td data-label="Work Rule" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e82 ">
              <a href="https://help.salesforce.com/s/articleView?id=service.pfs_optimization_theory_work_rules_match_time.htm&amp;type=5&amp;language=en_US" target="_blank">Match Time</a>
            </td>

            <td data-label="Rule Violation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e85 ">A violation occurs when there are no available candidates who meet the criteria
              of the Match Time rule. For example, no candidates can complete the service
              appointment before the due date or there are no candidates because the service
              appointment’s dates are in the past.</td>

            <td data-label="Recommendation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e88 ">
              <p>Verify that the standard match rule or other configuration is defined correctly.</p>
              <ul>
                <li>Earliest Start Permitted:​ Ensures that a service appointment’s Scheduled
                  Start is equal to or later than the Earliest Start Permitted (this work rule is
                  included in every standard scheduling policy). </li>
                <li>Due Date​: Ensures a service appointment’s Scheduled End is equal to or
                  earlier than the Due Date (this work rule is included in every standard
                  scheduling policy).</li>
                <li>Scheduled Start​: Ensures that a service appointment’s Scheduled Start is
                  equal to or later than the Arrival Window Start.</li>
                <li>Scheduled End​: Ensures that a service appointment’s Scheduled Start is equal
                  to or earlier than the Arrival Window End.</li>
              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Work Rule" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e82 ">
              <a href="https://help.salesforce.com/s/articleView?id=service.pfs_optimization_theory_work_rules_max_travel_home.htm&amp;type=5&amp;language=en_US" target="_blank">Maximum Travel from Home</a>
            </td>

            <td data-label="Rule Violation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e85 ">A violation occurs when there are no available candidates whose home base is
              within the rule’s defined distance or travel time to the service appointment’s
              location.</td>

            <td data-label="Recommendation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e88 ">Extend the rule’s travel time to allow for travel of up to a 200-kilometer or
              124-mile radius from the service appointment’s location or a distance of 1.5 times
              the maximum travel distance defined in the scheduling policy, whichever is
              greater.</td>

          </tr>
          <tr class="">
            <td data-label="Work Rule" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e82 ">
              <a href="https://help.salesforce.com/s/articleView?id=service.pfs_optimization_theory_work_rules_service_resource_availability.htm&amp;type=5&amp;language=en_US" target="_blank">Service Resource Availability</a>
            </td>

            <td data-label="Rule Violation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e85 ">A violation occurs when there are no available candidates because all of them
              are already assigned to service appointments.</td>

            <td data-label="Recommendation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e88 ">
              <p>Verify that there are available candidates with a service territory membership
                in the service appointment’s service territory by unscheduling low-priority service
                appointments or resource absences. Or, assign more service resources to the service
                territory.</p>
              <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
                <div class="slds-media slds-media_responsive">
                  <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/images/icon_note.png" alt="Note"></span></div>
                  <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span> To determine availability, Appointment Insights checks for the
                    total remaining available time of each service resource on the Gantt against the
                    duration of the service appointment.</div>
                </div>
              </div>
            </td>

          </tr>
          <tr class="">
            <td data-label="Work Rule" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e82 ">
              <a href="https://help.salesforce.com/s/articleView?id=service.pfs_optimization_theory_work_rules_working_territories.htm&amp;type=5&amp;language=en_US" target="_blank">Working Territories</a>
            </td>

            <td data-label="Rule Violation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e85 ">A violation occurs when there are no available candidates who work in the
              service appointment’s service territory (Primary or Secondary members).</td>

            <td data-label="Recommendation" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d47215e88 ">After Appointment Insights verifies that candidates in neighboring territories
              are available, make sure that you have one or more candidates with a service
              territory membership in the service appointment’s service territory within the
              relevant time frame.</td>

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