Entitlements and milestones

Where a case's clock comes from: entitlements, processes, milestones and actions, the business hours that govern them, and what freezes on activation.

What puts a contractual clock on a case, and what happens when that clock runs out? Entitlement management does, the set of features that define, enforce and track the service levels promised to a customer. This page explains where each clock comes from, which business hours govern it, and what stops being changeable once the process is activated.

A word about the words. Spanish Help translates entitlement as asignación and milestone as evento clave. The Spanish page here writes derecho and hito, as the Service Cloud summary does, because asignación is already the word for assignment rules.

What an entitlement is

An entitlement is a unit of customer support, such as “phone support” or “web support”, and it typically represents a term in a service agreement. It is associated with accounts, assets, contacts and service contracts.

Two rules place it in the model. Every entitlement must carry an account. And it cannot be shared: it inherits that parent account’s sharing settings, so updating it needs Read access on the account.

Its fields decide the rest.

Field What it fixes
Start Date, End Date the days the entitlement is in effect
Status Active, Expired or Inactive, from the system date against those two
Per Incident limits the entitlement to a number of cases
Cases Per Entitlement how many cases it covers, only if Per Incident is selected
Remaining Cases how many are left; it drops by one each time a case is created with the entitlement
Business Hours the business hours the entitlement supports
Entitlement Process the process applied to it

One detail surprises: Start Date and End Date arrive blank unless an Apex trigger or a quick action populates them, and Status is computed from them. This page’s reading, which no source states: populating those dates is part of the design.

An entitlement template predefines a product’s terms — name, Term (Days), process, Per Incident, Cases Per Entitlement, Business Hours and Type — and exists only if entitlements and products are enabled.

What decides who is entitled to support

Help gives five levels: the account, so that any of its contacts is entitled; the specific contact; the asset, which is the purchased product; the service contract; and the contract line item, a product covered by that contract. Three models follow.

Model When
Entitlements only the entitlement is not managed inside a contract and is not renewed
Entitlements and service contracts the entitlement is renewed at the contract level
Entitlements, contracts and contract line items the team manages contract transfers, mergers and renewals

A service contract represents a customer support agreement, and Help says it serves for subscriptions, service level agreements (SLAs) and other types of support. Contract line items are the products that contract covers, and they need the org to use products. Both pieces need entitlements enabled first.

The process is the timeline

An entitlement process is the timeline that holds every step the team must complete to resolve a support record. Not every entitlement needs one: Help gives the example of an entitlement that only states the customer is eligible for phone support 24/7, and adds that a process is needed when certain people must be emailed because a case has gone two hours unresolved.

Each process has a type, Case or Work Order, chosen when it is created and not changeable: Help answers “No” to that question and says all versions share the type. A process runs only on records matching its type, which is why Help asks that cases and work orders — the other kind of support record Help names here — be managed on separate entitlements.

Process criterion The two options
The record enters by its creation date, or by a custom date/time field, never a custom date alone
The record exits when it is closed, or by custom criteria through a filter or a formula
Where a case's clock comes fromFive levels form a chain and only the last one runs anything. The first is the service contract, which is the support agreement with the customer. The entitlement, which is linked to it, is the unit of support, such as phone support. An entitlement process is applied to the entitlement, and that process is the support timeline. Inside the process, each milestone is a required step with a deadline. And on each milestone, a milestone action is what runs when the milestone completes, is near violation, or is violated.linksappliesholdsfiresService contractthe agreementEntitlementthe unit of supportEntitlement processthe timelineMilestonethe timed stepMilestone actionwhat runs

The process is applied to the entitlement through the Entitlement Process lookup field, and from there it runs on every record linked to that entitlement. A template can carry it already associated.

The case is linked to the entitlement from the Cases related list on the entitlement, or by choosing the entitlement in the case’s lookup field. What does not happen by itself is the link from the channels: Help says entitlements don’t automatically apply to cases created with Web-to-Case or Email-to-Case, and proposes Apex code.

Milestones and their actions

A milestone is a required, time-dependent step, such as first response or resolution time. A process takes up to ten milestones, and the limit is per process, not per org and not per case. They are created before the process and added to it afterwards. Salesforce assigns the case the milestones whose criteria match, one at a time even though it may pass through many.

Adding the milestone to the process fixes The options
The time trigger the minutes in which it must be completed, or an Apex class that computes it dynamically
When the Target Date starts counting when the milestone is applied to the record, or when the process starts
The order which is processed first when the record matches several criteria at once
The criteria the filter or the formula the record must match
The recurrence no recurrence, once only; independent, every time the criteria match; sequential, the same, but if an occurrence completes before its Target Date the next one starts at that date

That Apex class must implement the Support.MilestoneTriggerTimeCalculator interface. With either of the two recurring types only one occurrence is active at a time. The record shows one of three statuses: Compliant, Open Violation and Closed Violation. The third is the one to watch: the step was completed, but late. And milestones aren’t marked completed automatically.

A milestone action is an automatic, time-dependent action, which Help calls a workflow action. There are three kinds, and the first carries a nuance that matters: success actions still fire on milestones completed late.

Kind When it fires What it needs
Success the milestone completes uses the milestone’s own time trigger
Warning the milestone is near violation its own time trigger
Violation the milestone is violated its own trigger; at zero minutes it fires immediately

Each kind takes a task, an email alert, a field update, an autolaunched flow, an outbound message or an existing action, up to ten actions and ten time triggers per kind.

A milestone does not reassign the case: all it produces are the actions above. Escalation rules, which none of the articles cited here mentions, belong to queues and assignment rules.

The clock and business hours

Here is the detail that decides a contractual commitment. Business hours are applied by a hierarchy, and Salesforce uses the highest level set.

Level What happens
Milestone its business hours override the process’s
Process used if the milestone has none, and overrides the case’s
Case used if neither the milestone nor the process has any
Entitlement a record created from the entitlement inherits them, but Help recommends leaving the field blank when the entitlement is part of a process

The milestone timer pauses outside business hours. Help’s example: a milestone starting at 4:30 PM with a 60-minute trigger and business hours from 9:00 AM to 5:00 PM counts 30 minutes that day and the other 30 the next, with a target of 9:30 AM. A rep can stop it with the Is Stopped checkbox, and the first stop counts, not the latest. Past the Target Date the timer adds the whole overdue period, including the time it was stopped.

The actions do not follow that rule, and that is the trap in the feature. An action’s time trigger calculation doesn’t account for the milestone’s business hours, and warning and violation actions are converted into minutes on a 24-hour clock. In Help’s example, with eight hours a day and five days a week, a warning set to “2 Days Before” means 2,880 minutes before, six business days: it would have to be issued in the past, so it executes immediately. And a field update locks the case for a moment, can trigger assignment rules, and fails without an error if it takes more than ten seconds.

Changing the business hours of an active process is not an edit. With versioning enabled, you create a new version, change its business hours and bring it into the original with an update rule. Those business hours don’t travel in a change set either, the mechanism that moves configuration from one Salesforce org to another.

Limits, and what freezes on activation

Limit Value
Entitlement processes per org 1,000
Milestones per entitlement process 10
Service contracts in a hierarchy 10,000
Contract line items in a hierarchy 10,000
Entitlement queue entries per hour 50,000

Activating the process closes doors.

The moment What stops being possible
After activation deleting its milestones or creating milestone actions
After it is applied to a record updating or deleting the actions it already has; which is why Help recommends not activating until they are added
On a new version of a process in use editing the milestones already there; adding others is allowed
When creating the version you choose whether it applies to the previous version’s records or only to new ones
Once versioning is enabled disabling it: Salesforce prevents that

Enabling, editions and permissions

Entitlements are enabled in Setup, under Entitlement Settings, by selecting Entitlement Management.

To You need
Enable entitlements the Customize Application permission and the standard System Administrator profile
Set up milestones, processes and templates the Manage Entitlements permission
Create cases with entitlements Create on cases and Read on entitlements

One visibility detail: any user can view entitlement processes through the API — the application programming interface — even without the View Setup and Configuration permission.

The feature is not in every edition, and here that decides a project.

What Help publishes Detail
The name of the editions row “Service-Level Agreements (Entitlement Management)”
User interfaces Lightning Experience and Salesforce Classic
Editions Professional, Enterprise, Performance, Unlimited and Developer with Agentforce Service, the name Help now gives Service Cloud
The exception entitlement process monitoring is not available in Professional
The licence only users in orgs with that product enable, create and update entitlement management items

The new interface: SLA Management

Salesforce publishes a simplified setup that renames the pieces: Entitlement Management becomes SLA Management, and entitlement processes become SLA Policies. It is enabled on the same page, and the choice belongs before anything is built.

In the new interface What changes
Entitlement versioning it does not exist: when you update an SLA policy the updated version is the only one left, and whoever wants versioning must switch back to the older experience
Automatic entitlement application it exists only there: it applies the right entitlement, and with it its SLA policy, by conditions, with an order between rules where 1 is the highest

That automatic application happens only when the record is created: if an existing record later starts matching a rule, the entitlement isn’t applied.

Worked example: a private bank’s SLA

A private bank promises its private banking clients a two-hour first response, and everyone else eight hours. The example is invented, the order of the steps is this page’s proposal and not a sequence Help publishes, and each step uses only pieces documented above.

Step What is configured
One entitlement per account “Private banking support”, hanging off the account, with Start Date and End Date populated by a quick action
The process type Case, entry by creation date, exit when the case closes, business hours 9:00 AM to 5:00 PM Monday to Friday
First milestone “First response”, 120-minute trigger, criteria Priority equals High, no recurrence, with its own 24/7 business hours
Second milestone “Standard first response”, 480-minute trigger, criteria Priority not equal to High, no recurrence, no business hours of its own
The actions an email warning to the supervisor and, on violation, a task with the trigger at zero minutes
The channel an Apex trigger that sets the entitlement on cases from Email-to-Case, because it is not set by itself
The order the actions are added before the process is activated

Two outcomes come from the rules, not from the wish. The private banking milestone runs 24/7 because its business hours override the process’s. And its warning is computed on a 24-hour clock, not on those hours, so it has to be expressed in minutes before it is promised.

When a process is needed

The need The answer
Knowing whether the caller is entitled to support an entitlement, with no process
Limiting support to a number of cases an entitlement with Per Incident
Committing to a first response or resolution time a process with milestones
Warning someone before a breach a warning action on the milestone
Reassigning the case when a deadline passes not a milestone; decided on another page
Renewing the commitment by contract service contracts

This page’s reading from Help’s only sentence on the matter: the criterion is not how important the customer is, it is whether the commitment has a clock. With no deadline an entitlement is enough; with one, a process is needed.

Before production

  1. Confirm the org’s edition and product (see “Enabling, editions and permissions”).
  2. Choose between the classic interface and SLA Management: versioning exists only in the first (see “The new interface: SLA Management”).
  3. Choose the process type carefully: it cannot be changed (see “The process is the timeline”).
  4. Add every milestone action before activating the process (see “Limits, and what freezes on activation”).
  5. Check which level each set of business hours sits on, and convert the warning and violation triggers into minutes (see “The clock and business hours”).
  6. Decide how a case arriving by email or web form gets its entitlement (see “The process is the timeline”).
  7. Check who has Read access on the entitlement’s account (see “What an entitlement is”).

Official sources

Back to the knowledge base