EntitlementProcess defines an entitlement process's milestone obligations, timing, exit conditions, and automated actions for the object identified by SObjectType. It configures the process, not individual entitlement records or milestone instances running on records.
Each nested EntitlementProcessMilestoneItem references a separate MilestoneType through milestoneName and adds process-specific criteria, deadlines, and actions. The milestone item remains part of the process component; it is not a separately deployed milestone definition.
Key Elements
| Element | What the Element Controls |
|---|---|
SObjectType |
The type of record on which the process can run. |
active |
Whether the process is active. This is separate from default-version status. |
isVersionDefault |
Whether this process version is the default version. |
versionMaster |
The sequence of versions to which the process belongs. Its value can be arbitrary, but all versions in the same sequence must share it. |
versionNumber |
The process version number. It must be 1 or greater. |
entryStartDateField |
The date/time used for case-based process entry. Documented values are SlaStartDate, CreatedDate, ClosedDate, LastModifiedDate, and StopStartDate. |
businessHours |
The business-hours calendar. This element exists at both process and milestone scope. |
exitCriteriaFormula |
A formula whose true result causes the case to exit the process. Filter-based exit uses separate elements. |
milestoneName |
Within a milestone item, identifies the referenced MilestoneType. |
milestoneCriteriaFormula |
Within a milestone item, determines applicability when the formula evaluates to true. It does not by itself define completion criteria. |
milestoneCompletionCriteria |
The criteria for marking a milestone complete. Its documented string type differs from the exposed structured representation described below. |
minutesToComplete |
The interval in minutes used to determine the milestone deadline. Interpret it together with the milestone's start-time and business-hours settings. |
minutesCustomClass |
The ApexClass used to calculate the trigger time. |
useCriteriaStartTime |
true starts the milestone when its criteria are met; false starts it when the case enters the process. |
timeTriggers |
Milestone warning and violation triggers. Their actions run at the configured time only if the milestone is still incomplete. |
Behavior and Constraints
Activation and default version are different settings. active describes activation, while isVersionDefault identifies the default version. A shared display name does not identify a particular version, and neither setting replaces the version identity carried by versionMaster and versionNumber.
Exit, applicability, completion, and pause criteria serve different purposes. At process scope, exitCriteriaFilterItems supplies filter-based exit conditions, with exitCriteriaBooleanFilter supplying their Boolean logic. Formula-based exit uses exitCriteriaFormula.
Within a milestone, milestoneCriteriaFilterItems and criteriaBooleanFilter, or milestoneCriteriaFormula, determine when the milestone applies. milestoneCompletionCriteria instead describes when to mark it complete. The separate nested milestonePauseCriteria structure represents pause criteria. Do not treat these as interchangeable conditions when inspecting a process.
Deadline calculation depends on more than the minute interval. For case-based entry timing, entryStartDateField has these meanings:
-
SlaStartDate: entitlement process start date. -
CreatedDate: when the case was opened. -
ClosedDate: when the case was closed. -
LastModifiedDate: when the case was last modified. -
StopStartDate: when the case was stopped.
minutesToComplete supplies a minute interval, while minutesCustomClass identifies Apex timing logic. Check useCriteriaStartTime before interpreting the interval: a milestone can start when its criteria become true rather than at process entry. Also distinguish process-level businessHours from milestone-level businessHours; both scopes matter when interpreting the configured deadline calendar.
Completion actions and timed actions have different conditions. successActions run when the milestone is completed. Actions nested under timeTriggers run when the trigger time is reached only if the milestone is still incomplete at that time.
Each trigger's timeLength is a signed offset from the target completion date. Negative values represent warnings before the target date; positive values represent violations after it. workflowTimeTriggerUnit supplies the unit: Minutes, Hours, or Days.
Each action reference requires both name and type. The action's nested name identifies the referenced action, not the process's top-level display name. The exposed action-type values are Alert, FieldUpdate, FlowAction, FlowAutomation, KnowledgePublish, Notification, OutboundMessage, Send, and Task. A value's presence in the enumeration does not establish that every existing action of that kind will be selectable in the milestone UI.
Deployment and Retrieval
Files reside in the entitlementProcesses directory and use the .entitlementProcess suffix. Each file contains one process, or one version of a process when entitlement versioning is enabled.
The file base corresponds to slaProcess.NameNorm, not the UI display name stored in name. It uses the lowercase process name with a version appended when applicable, such as gold_support_v2.entitlementProcess. Multiple versions can share the same display name, so the display name alone is insufficient when selecting a version for retrieval or deployment.
EntitlementProcess supports the * wildcard in the package.xml manifest, the file that selects components for deployment or retrieval. For a single-component request, distinguish the normalized component identity from the display name and from any encoding needed in the request.
The process file contains its nested milestone configuration. The MilestoneType named by each item, an ApexClass named by minutesCustomClass, referenced fields, and named actions are separate dependencies. The nested action name and its type identify which action dependency to inspect when behavior differs between environments.
Reported deployment failures include a destination milestone allowance lower than the source's allowance. Separately, successful deployment of a flow has not always made that flow selectable as a milestone action. A reported single-component retrieval problem involving double underscores also differs from an invalid on-disk component name. The conditions and workarounds for these reports appear below.
Relationships
The process connects object metadata, fields used by criteria, reusable milestone definitions, Apex timing logic, and workflow actions. Field dependencies can occur in entryStartDateField, nested filter elements, and formula expressions. For action references below, name means the nested element in successActions or timeTriggers.actions, not the process display name.
References
-
ApexClass:minutesCustomClass. -
CustomField:entryStartDateField,exitCriteriaFormula,field,milestoneCriteriaFormula,valueField. -
CustomObject:SObjectType. -
MilestoneType:milestoneName. -
QuickAction:name. -
RecordType:recordType. -
WorkflowAlert:name. -
WorkflowFieldUpdate:name. -
WorkflowFlowAction:name. -
WorkflowKnowledgePublish:name. -
WorkflowOutboundMessage:name. -
WorkflowTask:name.
Referenced By
-
EntitlementTemplate:entitlementProcess.
The template association is separate from the milestones and action references contained within the process.
Documentation Inconsistencies
The Salesforce field table declares milestoneCompletionCriteria as a string. The exposed structured representation instead treats it as an array containing object context through criteriaObjectName and criteriaObjectType, filter items, Boolean filter logic, and formulas. It also exposes milestonePauseCriteria as a separate nested criteria structure. This representation difference matters when reading or processing completion criteria; neither structure should be mistaken for milestone applicability criteria.
Reported Issues
- A deployed flow may remain unavailable for milestone selection. In a 2025 report, active, compatible flows created in Setup or deployed to the destination were not selectable as milestone actions. Flows created through the milestone action's "New Flow" option were selectable only within the same entitlement process. Removing every milestone association made a flow unavailable for selection again. The reporter found that creating and linking the flow through that UI in the destination allowed later deployments to update it while preserving its links and selectability. This is a reported workaround for those conditions, not a universal requirement to recreate deployed flows. Flow selection and deployment report.
-
An opaque deployment exception may indicate a destination milestone allowance mismatch, not a deployment-tool limitation. A 2018 support-assisted report attributed an
ORA-20515exception involvingcMilestone.insert_detailto a process exceeding the destination's milestone allowance. The source had an increased allowance, but the destination did not. The discussion reported the same error through ANT and a change set. The answer proposed aligning the allowances or reducing the process's milestone count; it does not establish a universal current milestone limit. Milestone allowance diagnosis. -
Single-component retrieval may fail even when wildcard retrieval succeeds. A 2022 report reproduced this behavior in ANT and Workbench for a process name containing
__. Encoding the underscores as%5Fin the manifest member, such assomecomponent%5F%5Fprocess, was reported to work. This concerns retrieval-request encoding, not a requirement to rename the on-disk file or a general prohibition on underscores. Double-underscore retrieval workaround. -
An Apex query can use the wrong API name when the metadata type is mistaken for a record object. A 2017 discussion resolved a query written against
EntitlementProcessby queryingSlaProcessinstead. The answer related entitlement records to that process throughEntitlement.SlaProcessId. Entitlement process query discussion.
Common Questions
Why does my entitlement process filename differ from its name in Setup?
The top-level name is the UI display name. The file base corresponds to slaProcess.NameNorm: the lowercase process name with a version appended when applicable. Different versions can share the same display name.
Do I deploy MilestoneType or EntitlementProcess to move milestone configuration?
They represent different parts. MilestoneType supplies the reusable milestone definition. EntitlementProcess contains each process-specific milestone item, including its criteria, timing, and actions, and references the definition through milestoneName.
Why does a milestone not start when the case enters the entitlement process?
When useCriteriaStartTime is true, the milestone starts when its criteria are met. When it is false, it starts at process entry. Interpret its deadline together with minutesToComplete, any minutesCustomClass, and business hours at both scopes.
Do warning or violation actions run after a milestone is complete?
Actions under timeTriggers run only if the milestone is still incomplete when the trigger time arrives. successActions are separate actions triggered by milestone completion.
Why is my deployed flow missing from the milestone action picker?
A 2025 report found that successful deployment did not make an otherwise active, compatible flow selectable. Creating and linking the flow through the destination milestone action's "New Flow" option allowed subsequent deployments to update it without losing the association. That workaround is conditional reported behavior, not a general deployment requirement.