An SLA in Salesforce is three settings. Most broken clocks miss the first one.

An SLA in Service Cloud runs on three things: business hours say when time counts, an entitlement process holds the targets, and milestones count down each target on the case. A milestone reads its own business hours first, then the entitlement process, then the case, and an org with no business hours set counts 24 hours a day, seven days a week.

Below: the setup in order, how the timer counts, pauses, violation actions, the breach report, and the gaps that leave a case with no clock and no error.

If someone else runs your Service Cloud, send them this page and ask which business hours record each milestone uses.

Salesforce’s Admin’s Guide to Entitlement Management (Winter 27 release), Trailhead, Salesforce Help, the Object Reference and the Apex Reference Guide, read on 3 December 2026. Reviewed 3 December 2026.

How do business hours, entitlements and milestones make an SLA in Salesforce?

Five records make the SLA. Business hours set when time counts. An entitlement says a customer is eligible for support and carries the entitlement process. The process is the timeline, and its milestones are the targets, such as First Response within 60 minutes. Milestone actions warn, escalate or record success. If a case has no entitlement, none of the rest runs on it.

RecordWhat it doesWhere you build itThe catch
Business hoursWhen the clock counts, in one time zone, with holidays attachedSetup, Business HoursWith none set, the org counts 24 hours a day, 7 days a week
EntitlementSays the customer is eligible and links the case to a processEntitlements tab, on the accountNot added to Email-to-Case or Web-to-Case cases on its own
Entitlement processThe timeline: when a case enters and leaves it, and which hours it usesSetup, Entitlement ProcessesUp to 1,000 per org
MilestoneOne required step with a target in minutesSetup, Milestones, then added to a processUp to 10 per process; never marked completed on its own
Milestone actionWarning before the target, violation after it, success at completionOn the milestone inside the processCannot be added once the process is active
Which business hours a milestone timer readsCaseEntitlementIf a case has noentitlementNone of the rest runs on it1The milestone’s own business hoursIf not2The entitlement process’s business hoursIf neither is set3The business hours on the caseWith none set: 24 hours a day, 7 days a weekOne milestone on the timelineStopped: waiting forthe customerHoliday linked tobusiness hoursCase enters the processWarning action, before thetargetTarget DateViolation action,after itTime triggered actions only occur during your Salesforce org’s business hours.Which business hoursa milestone timer readsCaseEntitlement1The milestone’s ownbusiness hoursIf not2The entitlement process’sbusiness hoursIf neither is set3The business hours on thecaseWith none set: 24 hours a day,7 days a weekIf a case has no entitlementNone of the rest runs on itOne milestone on the timelineCase enters the processStopped: waiting for thecustomerWarning action, before thetargetHoliday linked to business hoursTarget DateViolation action, after itTime triggered actions only occurduring your Salesforce org’s businesshours.
The timer reads the first business hours it finds, and pauses only for holidays on that record and for a stopped case.

Entitlement management works in Professional, Enterprise, Performance, Unlimited and Developer editions with Service Cloud; licence prices are on Service Cloud pricing.

How do you set up an SLA in Service Cloud, step by step?

Nine steps, in this order. Build the business hours first and activate the entitlement process last, because once a process is active you cannot delete its milestones or add milestone actions to it. The step most often skipped is the last one: making sure every case receives an entitlement and every milestone is marked completed when the work is done.

  1. Business hours. One record per team and time zone, with its holidays attached.
  2. Switch it on. Setup, Entitlement Settings, Enable Entitlement Management. On the same page select Enable stopped time and actual elapsed time. Only the standard System Administrator profile can do this.
  3. Give agents the fields. Field level security on Entitlement, Stopped and Stopped Since, and the Milestones component on the case page.
  4. Create the milestones. Setup, Milestones, New Milestone, named after the task (First Response, Resolution Time), with a recurrence type: No Recurrence, Independent or Sequential.
  5. Create the entitlement process. Type Case, when a case enters and leaves it, and its business hours. Leave Active unticked.
  6. Add the milestones with targets in minutes. Trailhead’s example sets 16 business hours as 960 minutes for High priority and 1,920 minutes for Medium and Low.
  7. Add milestone actions. A warning before the target, a violation action after it.
  8. Activate, then apply the process to each entitlement.
  9. Close the two gaps. A trigger that puts an entitlement on cases from email and web, and one that marks milestones Completed. Salesforce’s guide prints sample Apex for both.

Who replies once the clock runs is a separate setting, the case owner; see case ownership rules.

Which business hours does a milestone timer use?

The milestone’s own business hours, if you set them. If not, the entitlement process’s business hours. If neither is set, the business hours on the case. That order is written in Salesforce’s admin guide, and it explains why two High priority cases can show different deadlines: one milestone runs on the team’s 9 to 5 record, the other on whatever record sits on its case.

Where business hours are setWhat they control
A milestone inside the processThat milestone’s Target Date only
The entitlement processThe Target Date of every milestone on it that has no hours of its own
The case (Business Hours field)The fallback when neither of the above is set
An escalation ruleEscalation runs only during those hours, the Object Reference says

What agents see in the milestone tracker is a separate choice: Entitlement Settings has a checkbox called Show the time remaining in actual hours, not business hours. Salesforce’s own example: hours of 9:00 to 17:00, it is 16:30, and the target is 11:00 tomorrow. In business hours the tracker shows 2 hours 30 minutes; in actual hours, 18 hours 30 minutes.

Targets are accurate to the minute: a 10 minute milestone that starts at 11:10:40 is due at 11:20:00.

How do holidays and time zones change the SLA clock?

Each business hours record has one time zone, so teams in New York and London need two records. Holidays are separate records linked to business hours. Each business hours record takes up to 1,000 holidays, and a holiday takes the time zone of the business hours it is linked to. While a holiday lasts, those business hours and the escalation rules tied to them are suspended. A holiday linked to a different business hours record than the one your milestone reads changes nothing on that milestone.

The Object Reference describes the Holiday object as a period “during which your customer support team is unavailable”. A holiday can be all day or a span in minutes, and it can recur. For an all day holiday the date is stored at midnight UTC, and Salesforce says not to adjust it for time zones.

For several regions, set hours on each entitlement process, and on a single milestone only when one target needs a different day, such as a Critical milestone counted around the clock. Check what exists first:

SOQL
SELECT Name, IsDefault, IsActive, TimeZoneSidKey
FROM BusinessHours
ORDER BY IsDefault DESC, Name

If the default record has a 24 hour week, any case that falls back to it counts nights and weekends.

How do you pause the SLA clock while waiting for the customer?

Tick the case’s Stopped checkbox. While a case is stopped, its entitlement process is paused, and the Stopped Since field records from when. If several things stop the timer, Salesforce stops it at the first one, not the most recent. With Enable stopped time and actual elapsed time switched on, each milestone also shows Stopped Time and Actual Elapsed Time, which Salesforce defines as Elapsed Time minus Stopped Time. Nothing ticks Stopped for you; an agent or an automation on Status has to.

Salesforce’s guide describes Stopped as the field that “Lets you stop an entitlement process on a record, which might be necessary if you’re waiting for a customer’s response.” In the API the same pair is IsStopped and StopStartDate on Case.

The trap is field access. The guide warns that a user who cannot see Stopped sees the Lightning milestone component keep counting although the timer is paused, and a user who cannot see Stopped Since sees the timer restart from the current time on every refresh. Give agents both fields. Why a field that exists still does not appear for a user is explained on new field not visible.

What should happen when a milestone is about to be violated?

Three kinds of milestone action. A warning action fires before the target, a violation action after it, a success action when the milestone completes. Each can create a task, send an email alert, update a field, launch an autolaunched flow or send an outbound message. A common pair: email the case owner two hours before Resolution Time is due, and raise the case to High priority at violation.

Open the milestone inside the process and add a time trigger first; the option to add an action appears only after it. For a violation action at the moment the target passes, set the trigger to 0 minutes. Each action type takes up to 10 actions and 10 time triggers.

Three details catch people. The guide says time triggered actions “only occur during your Salesforce org’s business hours”. Actions on time based milestones can run a few seconds before the target, so a 0 minute violation action may fire in the minute before the deadline. And a violation email sent to a queue goes to the queue’s email address; the queue members do not receive it.

Why do SLA timers not start, run on, or never finish?

Usually one of four setup gaps, and none of them raises an error. The case has no entitlement, the milestone is never marked completed, the process was activated before its actions were added, or the business hours were lost when the process moved between orgs. The case then runs no clock, an endless clock, or a pause nobody can see.

  1. No entitlement on cases from email or the web. Salesforce’s guide is plain: entitlements “don’t automatically apply to cases created with Web-to-Case or Email-to-Case”. Without the trigger from step 9, emailed cases carry no clock. If Email-to-Case also splits one conversation into several cases, each gets its own clock; the causes are on Email-to-Case duplicate cases.
  2. Milestones that never complete. Milestones are not marked completed automatically. First Response stays open after the first reply unless a trigger, or the agent, completes it.
  3. Activated too early. After activation you cannot delete the process’s milestones or create milestone actions. The way out is a new version of the process, applied to new and existing entitlements.
  4. Business hours lost in a change set. The guide says business hours on entitlement processes are not supported in change sets. Recreate the process in the target org, move it with another deployment tool, or remove the hours before adding it to the change set. Why a change that deployed cleanly still breaks something else is on changes break other things.

One more trap sits outside the SLA setup: reopening closed cases. A clock measured from creation to the last close then counts every day the case sat closed as handling time. On the insurance agency desk in the insurance agency case, a late reply starts a new case linked to the old one instead.

How do you report on SLA breaches?

Report on Case Milestone, not on Case. Each Case Milestone row holds its own Target Date, Completion Date, Is Violated, Is Completed, Elapsed Time In Mins and Business Hours Id. One query therefore lists every breached target, which milestone it was and whether the work was finished later. Run it weekly, and run the second query below to find the cases that never had a clock.

Every breached milestone in the last 30 days:

SOQL
SELECT Case.CaseNumber, MilestoneType.Name, TargetDate,
       CompletionDate, IsCompleted, ElapsedTimeInMins
FROM CaseMilestone
WHERE IsViolated = true AND TargetDate = LAST_N_DAYS:30
ORDER BY TargetDate

Open cases with no entitlement, by channel:

SOQL
SELECT Origin, COUNT(Id)
FROM Case
WHERE IsClosed = false AND EntitlementId = null
GROUP BY Origin

If Email or Web holds most of the second result, step 9 is missing, and the breach report above is measuring only the cases agents created by hand.

Do you need entitlements just to measure how long cases take?

No. Entitlements and milestones set targets and act on them. To measure time, business hours and a number stored on the case are enough. Apex’s BusinessHours.diff returns the working time between two Datetimes in milliseconds, counted against the business hours record you pass in. The stored number then works in any report, filter or average.

Salesforce also has a ready column, Business Hours Age, for standard case reports. It needs working hours under 24 hours a day, it cannot be used as a filter or bucket, and it is missing from custom report types built on Case. Salesforce also says report results do not take holidays into account, so a stored number is the safer source for monthly figures. A formula such as ClosedDate minus CreatedDate reads no business hours at all and always counts nights and weekends.

On the insurance agency desk in the case study on this site, case age is counted only during office hours: time to claim a case, time to close it, and time to close it leaving out the hours spent waiting for the client.

A way to build the last of those clocks: on each status change, store on the case the working time since it was created, measured with BusinessHours.diff, and measure every stretch spent waiting for the client the same way and subtract it. The waiting stretches exist only in the case’s status history, so turn on field history tracking for Status before the first case is measured; months that were not tracked cannot be measured later. One test case shows whether it works: created on Friday at 16:00 and closed on Monday at 10:00, with hours of 9:00 to 17:00, it must read exactly 2 working hours.

The four BusinessHours methods, as the Apex Reference Guide describes them:

MethodWhat it returnsNote from the reference
diffWorking time between two Datetimes, in millisecondsCounted against the business hours you name
addThe Datetime after an interval, traversing business hours onlyPrecision under one minute is ignored
isWithinTrue if a moment falls inside business hours“Holidays are included in the calculation”
nextStartDateThe next moment business hours openReturns the same moment if already open

What does it cost to have SLAs built or checked?

There is no separate SLA price on this site. A new Service Cloud build starts at €12,325 for 145 hours, fixed against a written scope: the case model, queues, email to case, reports and dashboards for up to 15 agents, plus thirty days of support after handover, up to eight hours in total, and a sixty day warranty. The Service Cloud page has the rest.

On a running org, an SLA setup is checked and fixed within monthly support, from €680 a month for 8 hours, three months minimum. The €650 data quality check reads your data, not the SLA setup: one working day, delivered within three working days, read only. Every price is on one page.

What do service teams ask about Salesforce business hours and SLAs?

  • QIs this the same as Salesforce’s own uptime SLA?

    No. This page is about the SLA your team gives its customers. The status of Salesforce’s own services and planned maintenance is on the Salesforce Trust site, trust.salesforce.com; any uptime commitment to you sits in your contract.

  • QHow many milestones can one entitlement process hold?

    Ten, and an org can hold up to 1,000 entitlement processes, so one process per support level is no problem.

  • QCan different customers run on different business hours?

    Yes. Give each support level its own entitlement process with its own business hours, and link each customer’s entitlement to the right process. Hours set on a single milestone override the process for that one target.

  • QDoes the milestone tracker count business hours or clock hours?

    Either. A checkbox in Entitlement Settings, Show the time remaining in actual hours, not business hours, decides what agents see. The Target Date is calculated with business hours whichever you choose.

  • QCan a flow do this without code?

    Partly. Entitlements, milestones, milestone actions and escalation rules need no code. The two gaps in step 9 and a stored business hours number need Apex, because BusinessHours.diff is an Apex method; a flow can call it through an invocable action.

Have your SLA clocks built into the service desk

A Service Cloud build, from €12,325 for 145 hours, fixed against a written scope: case model, queues, email to case, reports and dashboards for up to 15 agents, with thirty days of support after handover, up to eight hours in total, and a sixty day warranty.

Serhii Skrypnyk, Senior Salesforce Administrator, Salesforce certified, on the platform since 2018. Reviewed 3 December 2026. The insurance agency desk mentioned above is in the insurance agency case.