MilestoneType defines a named milestone that an entitlement process uses to track important steps in cases. It supplies the milestone's description and recurrence policy. Its inherited fullName identifies the metadata component.
A milestone type is not the complete milestone configuration within an entitlement process, and it is not an occurrence running on a case. Process-level configuration belongs to EntitlementProcess; runtime occurrences are CaseMilestone records. Deploying a milestone type alone does not reproduce the process configuration that uses it.
Key Elements
The first three elements belong to MilestoneType. The last two belong to the consuming process configuration and explain its dependency on the milestone type.
| Element | What the Element Controls |
|---|---|
fullName |
The metadata component's name, inherited from Metadata. |
description |
The description of the milestone. |
recurrenceType |
The recurrence policy: none means once until the entitlement process exits; recursIndependently means independent recurrence; recursChained means sequential recurrence. Salesforce's field table labels this setting RecurrenceType. |
milestones on EntitlementProcess
|
The process's milestone configuration entries, each represented by EntitlementProcessMilestoneItem. These entries are distinct from runtime case occurrences. |
milestoneName on EntitlementProcessMilestoneItem
|
The reference from a process milestone entry to the MilestoneType it uses. |
Behavior and Constraints
The recurrence policy distinguishes a one-time obligation from a repeating one:
-
none: The milestone occurs only once until the entitlement process exits. -
recursIndependently: The milestone recurs independently. -
recursChained: The milestone recurs sequentially.
Completing an occurrence should not be assumed to stop a recurring milestone. Community reports describe sequential milestones creating another occurrence after completion and continuing to run after case closure. Interpret the recurrence policy together with the milestone criteria on EntitlementProcess and the actual case state.
Keep configured milestones separate from case occurrences when diagnosing missing milestones or designing automation. Retrieving a process's milestones answers which milestones are configured. Querying CaseMilestone answers which occurrences exist for a case. Those are different questions.
Deployment and Retrieval
Milestone type files are stored in the milestoneTypes directory of the package directory and use the .milestoneType extension.
In a package.xml manifest, use MilestoneType as the type name. Members can be individual milestone type names or the wildcard *.
MilestoneType and EntitlementProcess are separate metadata components. To move a process's milestone configuration, include the relevant process as well as its milestone types. A deployment containing only MilestoneType does not recreate the consuming process entries.
For impact analysis, identify the actual processes whose milestoneName references the component. An inventory of milestone types alone does not establish which processes use them. To inspect configured milestones, retrieve the relevant EntitlementProcess, rather than relying on occurrences queried from cases.
Relationships
Entitlement process configuration contains milestones entries of type EntitlementProcessMilestoneItem. That structure is part of the process configuration, not a separate milestone type component.
At runtime, CaseMilestone records link to the MilestoneType data object through MilestoneTypeId. This data relationship is distinct from the metadata reference below.
Referenced By
-
EntitlementProcess:milestoneName, within its milestone configuration.
Documentation Inconsistencies
The recurrence setting has a casing discrepancy: element definitions expose recurrenceType, while Salesforce's MilestoneType field table labels it RecurrenceType. Both identify the same three values: none, recursIndependently, and recursChained. They describe the same recurrence policy, not separate settings.
Reported Issues
-
A case-occurrence query does not inventory the process's configured milestones. A 2017 explanation distinguished
EntitlementProcess.milestonesentries fromCaseMilestonerecords linked throughMilestoneTypeId. It directed readers to Metadata API for process configuration and to case-occurrence queries for milestones applied to a case. Configured milestones versus case occurrences. -
Completion or case closure may not stop recurrence. In a 2018 discussion about sequential milestones, participants reported that completing one occurrence created another and that a milestone kept running after case closure. One response reported success after clearing the case's
EntitlementId. A 2019 response instead suggested excluding closed cases in the process's milestone criteria. In 2021, another participant reported controlling independent recurrence with criteria flags changed by a flow. These are conditional reports, not guarantees that any one action stops every recurring milestone. Recurring milestones after case closure. -
A status change should not be treated as proof that an occurrence completed. In a 2017 report involving two sequential milestones and process exit on case closure, milestones disappeared from the related list as the case changed status or closed. The answer recommended explicitly updating the active
CaseMilestone.CompletionDaterather than assuming the status change completed it. Missing milestones in a case related list.
Common Questions
How do I retrieve all MilestoneType components?
Use MilestoneType in the package.xml manifest with * as the member. Retrieved component files belong in milestoneTypes and use the .milestoneType extension.
Why did deploying MilestoneType not recreate my entitlement process milestones?
The milestone type and its consuming process are separate components. The process's milestones entries, including their milestoneName references, belong to EntitlementProcess.
How do I find milestones configured in an entitlement process rather than milestones on a case?
Retrieve the EntitlementProcess and inspect its milestones entries. Query CaseMilestone when you need runtime occurrences on a case, not the process definition.
Why is a recurring milestone still running after the case closes?
Community reports show that completion or case closure alone may not stop recurrence. The process's milestone criteria and the actual case state matter. Reported approaches include excluding closed cases through criteria and using criteria flags to control recurrence.