EntitlementTemplate defines reusable terms of customer support that users can add to products, such as Web or phone support. It supplies the support terms for entitlements created from the template, including case allowance, duration, and supported business hours.
An entitlement template is not an entitlement process. The template can reference an EntitlementProcess, which defines the support timeline, milestones (steps the support team must complete), and logic for enforcing the customer's service level.
Key Elements
| Element | What the Element Controls |
|---|---|
isPerIncident |
A boolean that determines whether entitlements created from the template support a limited number of cases. true means case-count limited; false means not case-count limited. |
casesPerEntitlement |
An integer specifying the total case allowance. Read it together with isPerIncident; it supplies the allowance for case-count-limited entitlements. |
term |
An integer specifying how many days the entitlement remains in effect. This duration is separate from the case allowance. |
businessHours |
A string specifying the entitlement's supported business hours. This controls the support schedule, not the entitlement's duration in days. |
entitlementProcess |
A reference to the associated EntitlementProcess component. The referenced process supplies milestone definitions and service-level enforcement logic. |
Behavior and Constraints
Case allowance and duration are independent. Setting isPerIncident to false removes the case-count limit; it does not make the entitlement unlimited in duration. The term value still describes how many days the entitlement is in effect.
For example, a template with isPerIncident set to true, casesPerEntitlement set to 12, and term set to 33 supplies a 12-case allowance and a 33-day duration. These are example values, not defaults.
businessHours describes the supported hours within the entitlement's terms. Do not read it as another way to specify the duration controlled by term.
The string element type describes the kind of support. Web and phone support are examples, not prescribed defaults or an exhaustive set of allowed values.
The template does not contain milestone definitions. Its duration, business hours, and case allowance do not describe the full service-level behavior. When entitlementProcess identifies a process, that process is also needed to understand the milestone obligations and enforcement logic.
Deployment and Retrieval
In a file-based Metadata API package, components reside in the entitlementTemplates directory. Each file's name matches the entitlement template's unique name and uses the .entitlementTemplate extension. The component inherits the fullName field from the base Metadata type.
The package.xml manifest, which selects metadata components for deployment or retrieval, supports the wildcard * for EntitlementTemplate. You can therefore select all entitlement templates without listing each template by name.
The template file holds the entitlementProcess reference, not the referenced process's milestone definitions. A retrieved template describes the reusable support terms, but its contents alone are not a complete description of the associated service-level configuration.
Relationships
The direct metadata reference connects the template to its service-level process. The template supplies reusable terms; the separate process supplies the milestone timeline and enforcement rules. See the EntitlementProcess reference for the process configuration.
References
-
EntitlementProcess:entitlementProcess.
Reported Issues
-
Moving the full process-and-milestone configuration can require more than the template. In a 2022 discussion about deploying entitlement processes and milestones between orgs, the accepted answer recommended selecting
MilestoneType,EntitlementProcess, andEntitlementTemplate, plus metadata referenced by those components, such as business hours, custom fields, and workflow. This was community component-selection guidance for that broader deployment. Read the deployment discussion.
Common Questions
Does isPerIncident=false make an entitlement unlimited?
Only with respect to case count. isPerIncident=false means the entitlement is not case-count limited. term separately specifies its duration in days.
Where are an entitlement template's milestones defined?
Milestones belong to the EntitlementProcess referenced by entitlementProcess. The template does not embed those definitions.
How do I retrieve all entitlement templates?
Use EntitlementTemplate as the type name and * as the member value in package.xml. Files reside in the entitlementTemplates directory with the .entitlementTemplate extension.
Is businessHours the same as the entitlement term?
No. businessHours specifies the supported business hours, while term specifies how many days the entitlement remains in effect.