Plugin for Account Deactivation RRS feed

  • Question

  • I'm required to write a plugin to close all associated Opportunities when an Account is Deactivated. I wrote the code and registered the plug-in with Update step. The plug-in gets fired when any account attributes are updated but not when the account is being deactivated. I can't find the Deactivate step in plugin registration tool. Am I missing something?
    Tuesday, December 28, 2010 6:55 PM


  • The "SetState" and "SetStateDynamicEntity" steps are the messages you'll want to attach your Plugin to for the Account entity.

    Dave Berry - MVP Dynamics CRM - http:\\crmentropy.blogspot.com Please follow the forum guidelines when inquiring of the dedicated CRM community for assistance.
    • Marked as answer by shiil Wednesday, December 29, 2010 7:16 PM
    Tuesday, December 28, 2010 6:59 PM