Programmatically Activate and Deactivate SLA Records in Dynamics CRM

By | April 29, 2016

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 Microsoft Dynamics CRM 2016, ‘UpdateRequest’ was introduced to activate and deactivate SLA records programmatically.

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 ‘UpdateRequest’ for activating or deactivating the SLA records. This saves the time and the effort of deactivating the SLA records manually.

Let’s take a look how the ‘UpdateRequest’ is used in C# and in the code block.

Using ‘UpdateRequest’ through C#

Using ‘UpdateRequest’ through scripting
Conclusion:

On a concluding note, hope the above code blocks help you to use ‘UpdateRequest’ to activate and deactivate the SLAs without affecting the cases. Any other SDK messages except ‘UpdateRequest’ are still not supported for this entity.

Now clone your Dynamics CRM Records in just 1 Click with Click2Clone.

Leave a Reply