MSBA-282 · Lesson 5 of 12 · 20 min

Service level agreements

▶ Video coming soon A video version of this lesson is on the way.

The fleet contracts promised a reply within two working hours. Ravi Castellane-Duff had signed off that wording himself three years earlier and had never been able to prove whether Kestrelbay kept it. Retail customers were told "within one business day" on the website, which was also unmeasured. When Mirela Dragomir-Hale asked what he wanted from service level agreements, Ravi wrote three lines on a sticky note: a clock everyone can see, a warning before we miss, and a report that tells me the truth even when it is bad. Then he added a fourth: "Don't let it count time we can't control."

A service level agreement, or SLA, in Dynamics 365 Customer Service defines targets for how quickly cases are responded to and resolved, measures each case against them, and triggers actions when a target is close to being missed, met or missed. This lesson covers the building blocks, SLA KPIs, SLAs and SLA items, then pausing, actions, applying SLAs to cases and showing timers to representatives. It describes the SLAs configured in the admin center, which are the current approach. Older standard SLAs are deprecated, with removal planned for a future release, and SLAs built in the old web client were deprecated in October 2020.

Three building blocks

An SLA is built from three records that fit inside each other. An SLA KPI names the measure, such as first response or resolution, and says which table and column it applies to. An SLA is the agreement for one primary table, such as Case. Inside the SLA, SLA items each link one KPI to the conditions under which it applies, the time allowed, the business hours to count, and the conditions that mean success. When a case meets an SLA item's conditions, Dynamics 365 creates an SLA KPI instance for that case, which is the running clock for that one measure on that one record.

Nested boxes. An SLA named Fleet priority for the Case table contains two SLA items: First response for fleets and Resolution for fleets. Each SLA item points to an SLA KPI, First response by and Resolve by. A case that meets the item conditions gets an SLA KPI instance for each item.
SLA KPIs define measures; an SLA holds SLA items that apply those measures; each case gets KPI instances.

SLA KPIs

SLA KPIs are created in the Copilot Service admin center under Service terms, SLA KPIs. Each has a name, the table it applies to, and a KPI field, a lookup column on that table that will point to the KPI instance, such as the first response by KPI or resolve by KPI columns that come with the Case table. An applicable from value names the date and time column from which the clock starts, typically the case's created on date. Because the clock measures time, the applicable from column must be a date and time column.

A KPI can also have its own pause conditions. The organization sets general on-hold statuses for SLAs in the service configuration settings; a KPI's pause conditions, with override criteria turned on, replace those general settings for that KPI only. Kestrelbay used this sparingly. Its first response KPI was never paused, because a first reply should not wait for anything. Its resolution KPI paused while a case was on hold or waiting for the manufacturer. After the KPI is saved, it is activated, and only active KPIs can be used in SLA items.

SLAs and SLA items

SLAs are created under Service terms, SLAs, with a name and a primary table, usually Case. The real work is in the SLA items. Each SLA item has these parts:

SLA item partWhat it decidesKestrelbay example
KPIWhich measure this item tracksFirst response by
Allow pause and resumeWhether the clock can pause; cannot be changed after the first saveOff for first response, on for resolution
Business hoursWhich customer service schedule counts as working timeKestrelbay service hours
Applicable whenConditions under which the item applies to a casePriority is high
Success conditionsWhat counts as meeting the targetFirst response sent is yes
Warn and fail durationsTime until a warning and until failure; the warning can be left emptyWarn after 90 minutes, fail after 2 hours
ActionsWhat happens when the item nears failure, succeeds or failsNotify the case owner and Wendeline

Two details trip people up. Allow pause and resume must be chosen before the item is first saved, because it cannot be toggled afterwards; Mirela deleted and recreated one item in Kestrelbay-Test to learn that the slow way. And applicable when is evaluated as the case changes: if a case stops meeting the conditions, the KPI instance is cancelled. That is why Microsoft advises against basing applicable when conditions on columns that change often. If a representative lowers a case's priority, an item that applied only to high-priority cases stops applying and its clock is cancelled, which may be what you want, but only if you planned it.

If no business hours are chosen, the SLA counts all hours, every day. Kestrelbay's business hours record, the subject of lesson 8, covers weekdays at the head office and Saturday mornings in season, so a case that arrives on Friday evening does not use up its first response target over the weekend. After the SLA items are complete, the SLA itself is activated.

Kestrelbay SLASLA itemApplicable whenWarn afterFail afterPause
Fleet priorityFirst responseAny active case90 minutes2 business hoursNo
Fleet priorityResolutionAny active case1 business day2 business daysYes
Standard serviceFirst response (high priority)Priority is high3 business hours4 business hoursNo
Standard serviceFirst responsePriority is not high6 business hours1 business dayNo
Standard serviceResolutionAny active case3 business days5 business daysYes

Pausing and resuming

Ravi's fourth line, about time Kestrelbay cannot control, is handled by pausing. When an SLA item allows pause and resume, the KPI instance pauses while the case is in one of the on-hold statuses defined in the service configuration settings, or in the KPI's own pause conditions if those override the general settings. Kestrelbay's on-hold statuses were the status reasons On hold, Waiting for details and the custom Waiting for manufacturer. While paused, the clock stops; when the case returns to In progress, it continues.

Microsoft's documentation adds a subtlety for SLA KPIs with pause conditions: pausing and then resuming cancels the existing KPI instance and creates a new one, which carries the timing forward. Reports that count KPI instances need to allow for this, or a paused case will look as though it had two measurements. Mirela added a note for whoever built Kestrelbay's dashboards in lesson 11.

A horizontal timeline for a resolution KPI. The clock starts when the case is created, runs, pauses while the case is Waiting for manufacturer, resumes, passes the warning point and is met before the failure point.
A resolution KPI with one pause. Only working time outside the pause counts toward the warning and failure points.

Actions when a target nears failure, succeeds or fails

An SLA item's actions are built in Power Automate. Selecting Configure actions on the item opens a predefined flow with branches for the three outcomes: is nearing non-compliance, is succeeded and is non-compliant. Inside each branch an administrator adds steps, such as sending an email from a template, posting a notification to the owner, raising the case priority or adding the case to a supervisor's queue. The predefined parts of the flow should be left as generated; the steps go inside the branches.

Kestrelbay kept its actions modest. Nearing non-compliance on a fleet first response sends the case owner a notification and emails Wendeline. Non-compliance on any resolution item adds a note to the case timeline and moves the case to the top of a supervisor view. Success has no action. Ravi had asked for an apology email to the customer on every failure, and Mirela talked him out of automating it: an automatic apology for a case the representative is about to solve reads as careless. A human decides whether to apologize.

Applying SLAs to cases

An active SLA does nothing until it is applied to a case. There are three common ways. An SLA can be set as the default SLA for its table, which applies it to cases that do not get an SLA another way. An entitlement can carry an SLA, as lesson 4 showed, and when a case uses that entitlement, the entitlement's SLA applies, taking precedence over the default. And the SLA lookup on the case can be set directly, by a person or by an automation such as a flow that chooses the SLA from customer data. Microsoft documents applying SLAs in its own article, and the methods can be combined.

Kestrelbay's design used two of them. Standard service is the default SLA. Fleet priority is attached to the fleet support entitlements, so fleet cases get the stricter targets as soon as the entitlement is set, and other customers fall back to the default. Nobody at Kestrelbay sets the SLA lookup by hand, which keeps the logic in one place.

Showing the clock to representatives

Ravi's first line, a clock everyone can see, is a form change. The timer control shows the time remaining or elapsed on a KPI instance, with colours for in progress, nearing non-compliance, succeeded and non-compliant. To add one, a maker edits the case form in a solution, adds the lookup column for the KPI instance, such as the first response by KPI, and adds the timer control to it. Kestrelbay's case form shows two timers, first response and resolution, near the top. The SLA admin forms themselves should not be customized; the timer goes on the case form.

Views can show KPI instance values too, which turns a queue into a list ordered by urgency, as Wendeline had hoped in lesson 3. Her favourite view lists open Fleet support cases sorted by the first response failure time, with nearing non-compliance highlighted.

Worked problem

Working out when a fleet first response fails

A fleet engineer emails at 4:45 PM on a Friday. Kestrelbay's business hours are 7:30 AM to 5:30 PM on weekdays, with no Saturday hours in November. The Fleet priority first response item fails after 2 business hours and warns after 90 minutes. When does it warn, and when does it fail?

Show solution
  1. Count Friday working time after arrival: 4:45 PM to 5:30 PM is 45 minutes.
  2. The warning needs 90 minutes, so 45 remain on Monday: 7:30 AM plus 45 minutes is 8:15 AM.
  3. The failure needs 120 minutes, so 75 remain on Monday: 7:30 AM plus 75 minutes is 8:45 AM.
  4. No pause applies, because first response items at Kestrelbay do not allow pause and resume.

Answer: The KPI warns at 8:15 AM and fails at 8:45 AM on Monday. A representative who answers first thing on Monday morning meets the target, which is what the contract intended.

Reporting honestly

Ravi's third line, a report that tells the truth, depends on two choices already made: business hours that match reality, and pause statuses that are used honestly. If representatives park cases on hold to stop the clock, the SLA report looks good and customers wait. Wendeline agreed to review cases with long hold time each week, and Mirela added the hold reason to the case form so that every pause had an explanation. The measures themselves, such as the share of cases meeting first response targets, belong to the dashboards in lesson 11.

Testing an SLA before go-live

SLAs are easy to configure and easy to get subtly wrong, so Mirela tested them in Kestrelbay-Test with a short script of cases, each designed to prove one behaviour. A case created at a known time with high priority should show a first response timer due two business hours later. Changing that case's priority to normal should cancel the high-priority item and start the normal one. Putting a case on hold should pause its resolution timer and leave its first response timer running. A case created late on a Friday should carry its timers over the weekend. Sending the first response should mark the first response instance as succeeded. And a case left alone past its failure time should run the non-compliance actions.

Each test case had an expected result written beside it before it was run, and Wendeline checked the results with Mirela rather than taking her word for them. Two tests failed the first time: the resolution item had been saved before pause and resume was turned on, and the success condition for first response checked the wrong column. Both were fixed and retested. Mirela kept the test script in the project log so that any later change to SLAs or business hours could be retested the same way.

Common mistakes

  • MistakeTurning on pause and resume after saving an SLA item.

    InsteadChoose Allow pause and resume before the first save, because it cannot be changed afterwards.

  • MistakeBasing applicable when conditions on a column that changes many times a day.

    InsteadUse stable columns, because the KPI instance is cancelled when the item stops applying.

  • MistakeLeaving business hours empty for a weekday service team.

    InsteadSelect a customer service schedule; with none, the SLA counts all hours every day.

  • MistakeCustomizing the SLA admin forms to add a timer.

    InsteadAdd the KPI instance lookup and the timer control to the case form instead.

Summary and key terms

  • SLA KPIs define measures; SLAs hold SLA items that apply them to a table; each case gets SLA KPI instances.
  • SLA items set applicability, success conditions, warn and fail durations, business hours, pause and actions.
  • Allow pause and resume cannot be changed after the first save; on-hold statuses or KPI pause conditions stop the clock.
  • Actions are Power Automate branches for nearing non-compliance, succeeded and non-compliant.
  • SLAs apply as the default, through an entitlement (which takes precedence) or by setting the case SLA lookup; timers go on the case form.
SLA KPI
A measure, such as first response or resolution, defined for a table and a KPI lookup column.
SLA item
A part of an SLA that applies one KPI under conditions, with durations, business hours and actions.
SLA KPI instance
The running record of one KPI for one case, with a status such as in progress, succeeded or non-compliant.
Applicable when
The conditions under which an SLA item applies to a record.
Timer control
A form control that shows time remaining or elapsed on an SLA KPI instance.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. What happens to a KPI instance when the case stops meeting the SLA item's applicable when conditions?

    Show answer

    The KPI instance is cancelled.

  2. Which takes precedence: the default SLA or the SLA on the case's entitlement?

    Show answer

    The entitlement's SLA.

  3. Name the three branches in an SLA item's actions flow.

    Show answer

    Is nearing non-compliance, is succeeded and is non-compliant.

  4. Why did Kestrelbay not allow pause on first response items?

    Show answer

    A first reply should never wait for anything outside Kestrelbay, so its clock always runs during business hours.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz