Plugin when a case (incident) is resolved in CRM 2013.

Very nice post by CRM Guru Nishant

Nishant Rana's Weblog

Hi,

To fire a plugin when an incident is resolved we need to register the plugin in

Close message for the incident entity.

And in the input parameters of the context we need to check for IncidentResolution.

This entity is a special entity that holds the information about the incident record that is being closed.

The sample plugin below gets the actual end attribute value of IncidentResolution and subtracts created on attribute value of Incident to get the duration and updates the duration (custom field) in the case being resolved.

The helpful post

http://varghesedanny.com/2011/02/24/plug-in-when-case-incident-is-closed/

View original post

Advertisement