---
schema_version: "1"
id: e3e1bf9a9848b45358e3186bfcb161b0f2441b42244da515f6ba5561cb065962
title: AppointmentAssignmentPolicy
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_appointmentassignmentpolicy.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_appointmentassignmentpolicy.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 24b916d41360434405051a66b612a0a60e614df5c9dd81ac1193d0727a8f8da9
description: Represents the information about a resource assignment rule. This type extends the Metadata metadata type and inherits its fullName field.
---
# AppointmentAssignmentPolicy

Represents the information about a resource assignment rule. This type extends the Metadata metadata type and inherits its fullName field.

![Important](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

## File Suffix and Directory Location

AppointmentAssignmentPolicy components have the suffix .policy and are stored in the appointmentAssignmentPolicies folder.

## Version

AppointmentAssignmentPolicy components are available in API version 53.0 and later.

## Fields

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d142874e91">Field Name</th>

              <th class="featureTableHeader  " id="d142874e94">Field Type</th>

              <th class="featureTableHeader  " id="d142874e97">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d142874e91" data-title="Field Name"><span class="keyword parmname">masterLabel</span></td>

              <td class="entry" headers="d142874e94" data-title="Field Type">string</td>

              <td class="entry" headers="d142874e97" data-title="Description">Required. The label for the appointment assignment policy.</td>

            </tr>

            <tr>
              <td class="entry" headers="d142874e91" data-title="Field Name"><span class="keyword parmname">policyApplicableDuration</span></td>

              <td class="entry" headers="d142874e94" data-title="Field Type">string</td>

              <td class="entry" headers="d142874e97" data-title="Description">Required. The frequency at which the utilization of service resources is
                calculated. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Monthly</samp></li>

                  <li class="li"><samp class="codeph nolang">ParameterBased</samp></li>

                  <li class="li"><samp class="codeph nolang">Weekly</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d142874e91" data-title="Field Name"><span class="keyword parmname">policyType</span></td>

              <td class="entry" headers="d142874e94" data-title="Field Type">string</td>

              <td class="entry" headers="d142874e97" data-title="Description">Required. The type of appointment assignment policy. Valid value is:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">loadBalancing</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d142874e91" data-title="Field Name"><span class="keyword parmname">utilizationFactor</span></td>

              <td class="entry" headers="d142874e94" data-title="Field Type">string</td>

              <td class="entry" headers="d142874e97" data-title="Description">Required. Specifies the count type for the resource utilization. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">NumberOfAppointments</samp></li>

                  <li class="li"><samp class="codeph nolang">TotalAppointmentDuration</samp></li>

                </ul>
              </td>

            </tr>

          </tbody>

        </table>

## Declarative Metadata Sample Definition

The following is an example of an appointmentAssignmentPolicy component.

<?xml version="1.0" encoding="UTF-8"?>
<AppointmentAssignmentPolicy xmlns="http://soap.sforce.com/2006/04/metadata">
   <masterLabel\>loadBalancing Assignment Policy</masterLabel\>
   <policyType\>loadBalancing</policyType\>
   <policyApplicableDuration\>Weekly</policyApplicableDuration\>
   <utilizationFactor\>TotalAppointmentDuration</utilizationFactor\>
</AppointmentAssignmentPolicy\>

The following is an example package.xml that references the previous definition.

<?xml version="1.0" encoding="UTF-8"?>
 <Package xmlns="[http://soap.sforce.com/2006/04/metadata](http://soap.sforce.com/2006/04/metadata)">
   <types>
     <members>sample</members>
     <name>AppointmentAssignmentPolicy</name>
   </types>
   <version>53.0</version>
 </Package>

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).