Hi,
I have a plugin that fired when the record is deactivated.
Below is the code -
if (context.InputParameters.Contains("EntityMoniker") && context.InputParameters["EntityMoniker"] is EntityReference)
{
EntityReference EntityRef = (EntityReference)context.InputParameters["EntityMoniker"];
//code continues
}
And i have registered the plugin on SetState and SetStateDynamicEntity steps.
The plugin fires when the record is directly activated or deactivated. However when the 2 records are merged, the other record gets deactivated, at this point, the deactivation plugin does not work.
Kindly suggest.