Quantcast
Channel: Forum CRM Development
Viewing all articles
Browse latest Browse all 1000

CRM 2016 Deactivate plugin does not fire when records merged

$
0
0

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.




Viewing all articles
Browse latest Browse all 1000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>