Apply SLAs to entities

Service-level agreements (SLAs) in Dynamics 365 Customer Engagement (on-premises) help you define the level of service or support that your organization agrees to offer a customer by including items to define metrics or key performance indicators (KPIs) to attain the service level. You can apply SLAs to custom entities and the following system entities:

  • All activity entities (such as Email, Task, and Appointment) except recurring appointments (RecurringAppointmentMaster)

  • Account

  • Contact

  • Invoice

  • Incident (Case)

  • Opportunity

  • Quote

  • Lead

  • SalesOrder (Order)

Note

SLA support for entities, in addition to the Incident entity, was introduced in CRM Online 2016 Update 1 and Dynamics 365 Customer Engagement (on-premises) Service Pack 1.

Enable entities for applying SLAs

To apply SLAs to an entity, you must set the IsSLAEnabled attribute to true for the entity. You can’t change this setting after it’s enabled. By default, the Incident entity is enabled for SLAs.

You can also use the customization tool to enable entities for SLAs. More information: Enable entities for service level agreements

After you have enabled an entity for SLAs, new SLA-related attributes, such as SLAId and SLAInvokedId, will be automatically added to the entity.

Create SLA KPIs

To programmatically create SLA KPIs for an entity, create a lookup attribute on any SLA-enabled entity, and then set a relationship for that attribute to the SLAKPIInstance entity.

Apply SLAs to entity records

Using the Customer Engagement (on-premises), you can create SLAs for an SLA-enabled entity, and set an SLA as default for the entity so that it is applied automatically to any new entity records.

However, if you want to manually apply SLAs to entity records based on any custom business requirement, you can programmatically update the entity record to set the SLAId attribute value to the desired active SLA record.

 

See also

Service entities in Customer Engagement (on-premises)
Enhanced service level agreements (SLAs)