Search code examples
dynamics-crmdynamics-crm-2015dynamics-crm-2016

Does Updating the Target in a Pre-Operation Cause Other Plugins to Trigger?


Given:

  1. Two plugins registered against the Synchronous pre-operation of Contact, Plugin A, and Plugin B,
  2. Plugin A's Execution Order is 1, and Plugin B's Execution Order is 2

If Plugin B updates the target entity (no IOrganizationService Update, just a standard update of the in memory CRM entity object itself) will this change to the target trigger Plugin A to fire?


Solution

  • No, as long as IOrganizationService update is not called a new update event is not triggered. Triggering the same plugin event on adding attributes to the existing target entity would end up causing infinite loops.