{"id":2689,"date":"2016-04-29T17:54:54","date_gmt":"2016-04-29T12:24:54","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=2689"},"modified":"2016-04-29T17:54:54","modified_gmt":"2016-04-29T12:24:54","slug":"programmatically-activate-and-deactivate-sla-records","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/","title":{"rendered":"Programmatically Activate and Deactivate SLA Records in Dynamics CRM"},"content":{"rendered":"<p><strong>Introduction:<\/strong><\/p>\n<p style=\"text-align: justify;\">Service Level Agreements (SLAs) in Microsoft Dynamics CRM help you define the level of support or service that the company agrees to offer to its client. The details items that are included to define key performance indicators (KPIs) or metrics to achieve the service level that is expected to be.<\/p>\n<p style=\"text-align: justify;\">With the release of Microsoft Dynamics CRM 2016, <strong>\u2018UpdateRequest\u2019<\/strong> was introduced to activate and deactivate SLA records programmatically.<\/p>\n<p style=\"text-align: justify;\">When we import the cases the related SLA records have to be deactivated programmatically so that it is not used along with the cases. We can now do this using \u2018UpdateRequest\u2019 for activating or deactivating the SLA records. This saves the time and the effort of deactivating the SLA records manually.<\/p>\n<p style=\"text-align: justify;\">Let\u2019s take a look how the <strong>\u2018UpdateRequest\u2019<\/strong> is used in C# and in the code block.<\/p>\n<p style=\"text-align: justify;\"><strong>Using \u2018UpdateRequest\u2019 through C#<\/strong><\/p>\n<pre class=\"lang:default decode:true\">\/\/Get Case Guid\n            Guid entitlementId = Guid.Empty;\n            Guid slaId = Guid.Empty;\n            Guid CaseId = new Guid(\"17145E3A-A7D7-E511-80DC-FC15B4284AE0\");\n\n            \/\/Retrieve Case to get entitlement\n            Entity caseRes = _orgService.Retrieve(\"incident\", CaseId, new ColumnSet(new string[] { \"title\", \"entitlementid\" }));\n\n            if (caseRes != null &amp;&amp; caseRes.Contains(\"entitlementid\"))\n            {\n                \/\/Get entitlement Id\n                entitlementId = ((EntityReference)caseRes.Attributes[\"entitlementid\"]).Id;\n            }\n\n            \/\/Retrieve Entitlement to get SLA\n            Entity entitleEntity = _orgService.Retrieve(\"entitlement\", entitlementId, new ColumnSet(new string[] { \"slaid\" }));\n\n            if (entitleEntity != null &amp;&amp; entitleEntity.Contains(\"slaid\"))\n            {\n                \/\/Get SLA Id\n                slaId = ((EntityReference)entitleEntity.Attributes[\"slaid\"]).Id;\n            }\n\n            \/\/Deactivate SLA Record\n            Entity slaEntity = new Entity(\"sla\");\n            slaEntity.Id = slaId;\n            slaEntity[\"statecode\"] = new OptionSetValue(0);\n            slaEntity[\"statuscode\"] = new OptionSetValue(1);\n\n            _orgService.Update(slaEntity);<\/pre>\n<p><strong>Using \u2018UpdateRequest\u2019 through scripting <\/strong><\/p>\n<pre class=\"lang:default decode:true  \">function DeactivateSLA() {\n    try {\n        var slaId = null;\n        var caseId = Xrm.Page.data.entity.getId();\n        var entitlement = Xrm.Page.getAttribute(\"entitlementid\").getValue();\n        var entitlementId = entitlement[0].id;\n        var cols = [\"slaid\"];\n\n        \/\/Retrieve Entitlement record\n        var entitleResponse = XrmServiceToolkit.Soap.Retrieve(\"entitlement\", entitlementId, cols, null);\n\n        \/\/Retrieve entitlement to get SLA\n        if (entitleResponse != null &amp;&amp; entitleResponse.attributes[\"slaid\"] != null) \n        {\n            slaId = entitleResponse.attributes[\"slaid\"].id;\n        }\n\n        \/\/Update SLA record\n        var slaEntity = {};\n        slaEntity.StateCode = { Value: 0 };\n        slaEntity.StatusCode = { Value: 1 };\n       \n        \/\/Update SLA Status\n        XrmServiceToolkit.Rest.Update(slaId, slaEntity, \"SLASet\", function (result) \n        {\n            Xrm.Utility.alertDialog(\"SLA Deactivated Successfully\" + Id);\n        },\n          function (err) { return (err.Message) }, false);\n    }\n    catch (e) \n    {\n        Xrm.Utility.alertDialog(\"Function Name:\" + \"DeactivateSLA\" + \"-\" + e.description);\n    }\n}<\/pre>\n<p><strong>Conclusion:<\/strong><\/p>\n<p style=\"text-align: justify;\">On a concluding note, hope the above code blocks help you to use <strong>\u2018UpdateRequest\u2019<\/strong> to activate and deactivate the SLAs without affecting the cases. Any other SDK messages except <strong>\u2018UpdateRequest\u2019<\/strong> are still not supported for this entity.<\/p>\n<p style=\"text-align: justify;\">Now clone your Dynamics CRM Records in just 1 Click with <a href=\"http:\/\/bit.ly\/1SAyYIb\" target=\"_blank\" rel=\"noopener noreferrer\">Click2Clone<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Service Level Agreements (SLAs) in Microsoft Dynamics CRM help you define the level of support or service that the company agrees to offer to its client. The details items that are included to define key performance indicators (KPIs) or metrics to achieve the service level that is expected to be. With the release of\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/\">Read More: Programmatically Activate and Deactivate SLA Records in Dynamics CRM &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,19,24],"tags":[86,1632],"class_list":["post-2689","post","type-post","status-publish","format-standard","hentry","category-development","category-dynamics-crm","category-dynamics-crm-2016","tag-activate-and-deactivate-sla-records","tag-sla-in-dynamics-crm"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction: Service Level Agreements (SLAs) in Microsoft Dynamics CRM help you define the level of support or service that the company agrees to offer to its client. The details items that are included to define key performance indicators (KPIs) or metrics to achieve the service level that is expected to be. With the release of\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Tushar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Programmatically Activate and Deactivate SLA Records in Dynamics CRM - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction: Service Level Agreements (SLAs) in Microsoft Dynamics CRM help you define the level of support or service that the company agrees to offer to its client. The details items that are included to define key performance indicators (KPIs) or metrics to achieve the service level that is expected to be. With the release of\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-04-29T12:24:54+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2016-04-29T12:24:54+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Programmatically Activate and Deactivate SLA Records in Dynamics CRM - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction: Service Level Agreements (SLAs) in Microsoft Dynamics CRM help you define the level of support or service that the company agrees to offer to its client. The details items that are included to define key performance indicators (KPIs) or metrics to achieve the service level that is expected to be. With the release of\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Tushar\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/#blogposting\",\"name\":\"Programmatically Activate and Deactivate SLA Records in Dynamics CRM - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Programmatically Activate and Deactivate SLA Records in Dynamics CRM\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#articleImage\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"datePublished\":\"2016-04-29T17:54:54+05:30\",\"dateModified\":\"2016-04-29T17:54:54+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/#webpage\"},\"articleSection\":\"Development, Dynamics CRM, Dynamics CRM 2016, Activate and Deactivate SLA Records, SLA in Dynamics CRM\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"name\":\"Dynamics CRM\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"position\":2,\"name\":\"Dynamics CRM\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2016\\\/#listItem\",\"name\":\"Dynamics CRM 2016\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2016\\\/#listItem\",\"position\":3,\"name\":\"Dynamics CRM 2016\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2016\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/#listItem\",\"name\":\"Programmatically Activate and Deactivate SLA Records in Dynamics CRM\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"name\":\"Dynamics CRM\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/#listItem\",\"position\":4,\"name\":\"Programmatically Activate and Deactivate SLA Records in Dynamics CRM\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2016\\\/#listItem\",\"name\":\"Dynamics CRM 2016\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Tushar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Tushar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/\",\"name\":\"Programmatically Activate and Deactivate SLA Records in Dynamics CRM - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction: Service Level Agreements (SLAs) in Microsoft Dynamics CRM help you define the level of support or service that the company agrees to offer to its client. The details items that are included to define key performance indicators (KPIs) or metrics to achieve the service level that is expected to be. With the release of\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2016\\\/04\\\/programmatically-activate-and-deactivate-sla-records\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2016-04-29T17:54:54+05:30\",\"dateModified\":\"2016-04-29T17:54:54+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Programmatically Activate and Deactivate SLA Records in Dynamics CRM - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction: Service Level Agreements (SLAs) in Microsoft Dynamics CRM help you define the level of support or service that the company agrees to offer to its client. The details items that are included to define key performance indicators (KPIs) or metrics to achieve the service level that is expected to be. With the release of","canonical_url":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/#blogposting","name":"Programmatically Activate and Deactivate SLA Records in Dynamics CRM - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Programmatically Activate and Deactivate SLA Records in Dynamics CRM","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/#articleImage","width":1000,"height":325,"caption":"inogic logo"},"datePublished":"2016-04-29T17:54:54+05:30","dateModified":"2016-04-29T17:54:54+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/#webpage"},"articleSection":"Development, Dynamics CRM, Dynamics CRM 2016, Activate and Deactivate SLA Records, SLA in Dynamics CRM"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","name":"Dynamics CRM"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","position":2,"name":"Dynamics CRM","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2016\/#listItem","name":"Dynamics CRM 2016"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2016\/#listItem","position":3,"name":"Dynamics CRM 2016","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2016\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/#listItem","name":"Programmatically Activate and Deactivate SLA Records in Dynamics CRM"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","name":"Dynamics CRM"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/#listItem","position":4,"name":"Programmatically Activate and Deactivate SLA Records in Dynamics CRM","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2016\/#listItem","name":"Dynamics CRM 2016"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Tushar","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Tushar"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/","name":"Programmatically Activate and Deactivate SLA Records in Dynamics CRM - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction: Service Level Agreements (SLAs) in Microsoft Dynamics CRM help you define the level of support or service that the company agrees to offer to its client. The details items that are included to define key performance indicators (KPIs) or metrics to achieve the service level that is expected to be. With the release of","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2016-04-29T17:54:54+05:30","dateModified":"2016-04-29T17:54:54+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"Programmatically Activate and Deactivate SLA Records in Dynamics CRM - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction: Service Level Agreements (SLAs) in Microsoft Dynamics CRM help you define the level of support or service that the company agrees to offer to its client. The details items that are included to define key performance indicators (KPIs) or metrics to achieve the service level that is expected to be. With the release of","og:url":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/","article:published_time":"2016-04-29T12:24:54+00:00","article:modified_time":"2016-04-29T12:24:54+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Programmatically Activate and Deactivate SLA Records in Dynamics CRM - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction: Service Level Agreements (SLAs) in Microsoft Dynamics CRM help you define the level of support or service that the company agrees to offer to its client. The details items that are included to define key performance indicators (KPIs) or metrics to achieve the service level that is expected to be. With the release of","twitter:creator":"@inogic","twitter:label1":"Written by","twitter:data1":"Tushar","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"2689","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 06:24:50","updated":"2025-07-04 01:03:46","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/\" title=\"Dynamics CRM\">Dynamics CRM<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2016\/\" title=\"Dynamics CRM 2016\">Dynamics CRM 2016<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tProgrammatically Activate and Deactivate SLA Records in Dynamics CRM\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics CRM","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/"},{"label":"Dynamics CRM 2016","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2016\/"},{"label":"Programmatically Activate and Deactivate SLA Records in Dynamics CRM","link":"https:\/\/www.inogic.com\/blog\/2016\/04\/programmatically-activate-and-deactivate-sla-records\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/2689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=2689"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/2689\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=2689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=2689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=2689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}