AppointmentAssignmentPolicy defines a rule for load balancing assignments among service resources. It controls how resource utilization is measured and how frequently that utilization is calculated.
It is distinct from AppointmentSchedulingPolicy, which can reference an assignment policy through its appointmentAssignmentPolicy element. The assignment policy defines the utilization criteria; a reference to it does not, by itself, establish whether it is active or used for a particular booking.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Inherited from Metadata. Identifies the metadata component, separately from its display label. |
masterLabel |
Required. Supplies the label for the appointment assignment policy. |
policyApplicableDuration |
Required. Sets the frequency at which service-resource utilization is calculated. Allowed values are Monthly, ParameterBased, and Weekly. |
policyType |
Required. Specifies the assignment policy type. The only documented allowed value is loadBalancing. |
utilizationFactor |
Required. Sets the workload measure: NumberOfAppointments measures appointment count, while TotalAppointmentDuration measures total appointment duration. |
Behavior and Constraints
Read policyApplicableDuration and utilizationFactor together. The first determines the calculation frequency; the second determines what is measured. Two policies with the same frequency can therefore represent different workload criteria.
For example, Weekly with NumberOfAppointments measures utilization by appointment count, while Weekly with TotalAppointmentDuration measures it by total appointment duration. Neither combination is established as a default.
ParameterBased is an allowed value for policyApplicableDuration, but the value's name alone does not identify which parameters control the calculation.
For impact analysis, inspect the AppointmentSchedulingPolicy components that reference the assignment policy. Changes to the utilization settings are relevant to those consumers, but the reference alone does not establish activation or use for a specific booking.
Deployment and Retrieval
AppointmentAssignmentPolicy components use the .policy file suffix and are stored in the appointmentSchedulingPolicies folder. Despite that folder name, the manifest type name for these components is AppointmentAssignmentPolicy.
In package.xml, use AppointmentAssignmentPolicy as the type name and the component's fullName as its member identity. The type supports the wildcard * in the manifest.
The definition requires masterLabel, policyApplicableDuration, policyType, and utilizationFactor. Keep the component identity separate from its label: fullName identifies the metadata component, while masterLabel supplies its label.
Relationships
The relevant consumer is a scheduling policy that points to this assignment rule. Inspect its reference when determining which scheduling policies could be affected by a utilization-setting change.
Referenced By
-
AppointmentSchedulingPolicy:appointmentAssignmentPolicy.
Common Questions
What is the difference between AppointmentAssignmentPolicy and AppointmentSchedulingPolicy?
AppointmentAssignmentPolicy defines load-balancing utilization criteria. AppointmentSchedulingPolicy is a separate metadata type that can reference that rule through appointmentAssignmentPolicy.
How do I measure workload by appointment count instead of duration?
Set utilizationFactor to NumberOfAppointments. Use TotalAppointmentDuration to measure workload by total appointment duration instead. policyApplicableDuration separately controls the calculation frequency.
How do I retrieve AppointmentAssignmentPolicy components?
Use AppointmentAssignmentPolicy as the type name in package.xml, with a component member name or the supported * wildcard. The components use the .policy suffix in the appointmentSchedulingPolicies folder.
Does a scheduling policy reference mean the assignment policy is active?
No. The appointmentAssignmentPolicy reference identifies a consumer relationship, but it does not by itself establish activation or use for a particular booking.