<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yuriy Sosnovtsev</title>
    <description>The latest articles on DEV Community by Yuriy Sosnovtsev (@yuriysosnovtsev).</description>
    <link>https://dev.to/yuriysosnovtsev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4238755%2Ffdca14cd-6f6f-4c3c-8a10-f69922bea6cb.jpg</url>
      <title>DEV Community: Yuriy Sosnovtsev</title>
      <link>https://dev.to/yuriysosnovtsev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yuriysosnovtsev"/>
    <language>en</language>
    <item>
      <title>How I design SLAs in D365 Customer Service</title>
      <dc:creator>Yuriy Sosnovtsev</dc:creator>
      <pubDate>Wed, 02 Dec 2026 12:05:26 +0000</pubDate>
      <link>https://dev.to/yuriysosnovtsev/how-i-design-slas-in-d365-customer-service-m4e</link>
      <guid>https://dev.to/yuriysosnovtsev/how-i-design-slas-in-d365-customer-service-m4e</guid>
      <description>&lt;p&gt;Here is the thing about SLAs: the timer is the easy part.&lt;/p&gt;

&lt;p&gt;What bites you later are the decisions you made before the first KPI existed. When should the clock stop? Whose calendar does it follow? How does the SLA even get onto a case?&lt;/p&gt;

&lt;p&gt;So this is the order I work in. Everything below is built and tested in a trial for &lt;strong&gt;Contoso Energy Home&lt;/strong&gt;, a fictional smart-home energy company. No real customers, no real data. The full step-by-step guide is in the &lt;a href="https://github.com/YuriySosnovtsev/contoso-support-demo/tree/main/docs/02-sla" rel="noopener noreferrer"&gt;demo repo&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;Three service tiers, each with a First Response and a Resolve target:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tier&lt;/th&gt;
&lt;th&gt;First response&lt;/th&gt;
&lt;th&gt;Resolution&lt;/th&gt;
&lt;th&gt;Hours&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Standard&lt;/td&gt;
&lt;td&gt;8 h&lt;/td&gt;
&lt;td&gt;5 business days&lt;/td&gt;
&lt;td&gt;Mon-Fri 9-18&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Premium&lt;/td&gt;
&lt;td&gt;4 h&lt;/td&gt;
&lt;td&gt;3 business days&lt;/td&gt;
&lt;td&gt;Mon-Fri 8-20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Partner&lt;/td&gt;
&lt;td&gt;1 h&lt;/td&gt;
&lt;td&gt;1 day&lt;/td&gt;
&lt;td&gt;24/7&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I only work with enhanced SLAs. They support pause and resume, and they create an SLA KPI instance for every KPI, so you can actually report on them (&lt;a href="https://learn.microsoft.com/power-platform/admin/enhanced-service-level-agreements" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Decide how the clock pauses
&lt;/h2&gt;

&lt;p&gt;Before I type a single target time, I decide when the clock stops.&lt;/p&gt;

&lt;p&gt;Why so early? Because &lt;strong&gt;Allow Pause and Resume&lt;/strong&gt; can't be changed after you save the SLA item for the first time (&lt;a href="https://learn.microsoft.com/dynamics365/customer-service/administer/define-service-level-agreements" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;). Get it wrong and you rebuild the item.&lt;/p&gt;

&lt;p&gt;"On hold" can be defined at three levels: the entity, the SLA KPI, or the SLA item. The narrower level wins (&lt;a href="https://learn.microsoft.com/dynamics365/customer-service/administer/set-pause-conditions-sla" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;). In the demo I set it on the SLA item: Status Reason equals &lt;em&gt;On Hold&lt;/em&gt; or &lt;em&gt;Waiting for Details&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;One thing that surprised me: pause and resume doesn't just freeze the timer. It cancels the SLA KPI instance and creates a new one. In my test a Premium case moved to &lt;em&gt;Waiting for Details&lt;/em&gt; and the Resolve KPI went to Paused. When I moved it back to In Progress, the old instance was Canceled and a fresh one started, with the failure and warning times shifted by the time on hold. That is what you want, but if your reports count KPI instances, they will count two.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo1lq2xmrszaqjzhih6f6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo1lq2xmrszaqjzhih6f6.png" alt="Pause and resume: the old Resolve By is canceled, a new one starts" width="800" height="174"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Calendars first, SLAs second
&lt;/h2&gt;

&lt;p&gt;An SLA item measures time against a customer service schedule. No schedule means work hours are all day, every day (&lt;a href="https://learn.microsoft.com/dynamics365/customer-service/administer/create-enhanced-sla" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;I build one calendar per tier (Standard Hours, Extended Hours, Always On) and attach a holiday schedule to each. Three things to plan for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Holidays need an owner.&lt;/strong&gt; Someone has to add next year's dates. Nobody thinks about this until a case breaches over New Year.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Time zones.&lt;/strong&gt; Warning and failure times are calculated in the calendar's time zone. If the user's time zone is different, the timer looks wrong, even though the math is right (&lt;a href="https://learn.microsoft.com/troubleshoot/dynamics-365/customer-service/service-level-agreements/warning-failure-times-incorrect-sla" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;). In my trial a user set to UTC saw times two hours off the Kyiv calendar. Several teams in different time zones? Expect several calendars.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Durations are in calendar hours.&lt;/strong&gt; The form shows days of 24 hours. Five business days on a 9-hour calendar is 45 working hours, which the form displays as 1.88 days. I enter hours and then check the result on a real case.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgvdfhfftfazlrn17twqz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgvdfhfftfazlrn17twqz.png" alt="The Standard Hours calendar" width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: One SLA per tier, boring conditions
&lt;/h2&gt;

&lt;p&gt;Only one SLA can be applied to a record (&lt;a href="https://learn.microsoft.com/dynamics365/customer-service/administer/apply-slas" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;). So I model one SLA per tier, each with a First Response item and a Resolve item.&lt;/p&gt;

&lt;p&gt;My rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Applicable From&lt;/strong&gt; needs a date and time field, not date-only. I use &lt;em&gt;Created On&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Applicable When&lt;/strong&gt; should use fields that don't change. A change to a frequently updated field can cancel the SLA item, and Learn advises against &lt;em&gt;Modified On&lt;/em&gt; (&lt;a href="https://learn.microsoft.com/dynamics365/customer-service/administer/sla-limitations" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No duplicate items.&lt;/strong&gt; Two items with the same KPI and the same Applicable When condition in one SLA are not allowed. I got "Service Level Agreement Item already exist with same KPI and applicable condition". The fix is not another KPI. It is a separate SLA.&lt;/li&gt;
&lt;li&gt;Success conditions stay plain: First Response Sent equals Yes, and Status Reason equals Problem Solved for Resolve.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F806r63hz9y95vnuuuihz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F806r63hz9y95vnuuuihz.png" alt="Three active SLAs, one per tier" width="800" height="116"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq3m2icyrs8zxfcw3tkvn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq3m2icyrs8zxfcw3tkvn.png" alt="The error you get when two items share a KPI and a condition" width="361" height="212"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Make sure the SLA reaches the case
&lt;/h2&gt;

&lt;p&gt;A perfectly configured SLA does nothing until it is applied. Learn lists the ways: a flow or plug-in, the case's entitlement, manually, or a default SLA. The lookup order is automatic first, then entitlement, then default (&lt;a href="https://learn.microsoft.com/dynamics365/customer-service/administer/apply-slas" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;I used one entitlement per tier. And here is what happened in my trial: the Entitlement field was not filled in on a new case. The SLA KPI instances stayed empty until I picked the entitlement and saved. So when no SLA applies, I look at the case's customer and the Entitlement field before anything else. Learn has a longer troubleshooting list for other causes (&lt;a href="https://learn.microsoft.com/troubleshoot/dynamics-365/customer-service/service-level-agreements/sla-not-getting-applied" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4211xdxkmnxfybeuv9wa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4211xdxkmnxfybeuv9wa.png" alt="Three active entitlements, one per tier" width="800" height="110"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Test with real cases
&lt;/h2&gt;

&lt;p&gt;I create one case per tier and read the timers against the calendar. A Partner case created at 08:42 got a First Response warning at 09:27 and failure at 09:42 (45 minutes and 1 hour). Resolve landed at +18 h and +24 h. A Premium Resolve target that crossed a weekend skipped Saturday and Sunday. That is how I confirm the calendar, the durations and the time zone together.&lt;/p&gt;

&lt;p&gt;One caution about warnings: failure and warning actions run asynchronously, and they can be delayed when the times are under one hour (&lt;a href="https://learn.microsoft.com/dynamics365/customer-service/administer/create-standard-sla" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;). Keep that in mind for a 45-minute warning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Plan the move between environments
&lt;/h2&gt;

&lt;p&gt;Treat SLAs as solution components. If you edit an active SLA item by hand, you create an active-layer change, and later upgrade solutions won't override it (&lt;a href="https://learn.microsoft.com/troubleshoot/dynamics-365/customer-service/service-level-agreements/slaitem-changes-missing-upgrade" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;). Calendars only travel with the SLAs if &lt;em&gt;Enable calendar export and import&lt;/em&gt; is set to Yes in the SLA settings (&lt;a href="https://learn.microsoft.com/dynamics365/customer-service/administer/manage-solution" rel="noopener noreferrer"&gt;Learn&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;And in my experience, an SLA often arrives in the target environment deactivated. So "activate the SLAs" goes on my deployment checklist, followed by a test case before real traffic.&lt;/p&gt;

&lt;h2&gt;
  
  
  My checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Decide the pause statuses and the level.&lt;/li&gt;
&lt;li&gt;Build the calendars and holidays, and name an owner.&lt;/li&gt;
&lt;li&gt;One SLA per tier, simple Applicable When.&lt;/li&gt;
&lt;li&gt;Confirm how the SLA reaches the case.&lt;/li&gt;
&lt;li&gt;Test one case per tier.&lt;/li&gt;
&lt;li&gt;Put SLA activation on the deployment checklist.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What is the first thing you check when you set up an SLA? Tell me in the comments.&lt;/p&gt;

</description>
      <category>dynamics365</category>
      <category>powerplatform</category>
      <category>customerservice</category>
      <category>sla</category>
    </item>
  </channel>
</rss>
