Daryl
Daryl

Reputation: 18895

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?

Upvotes: 2

Views: 1680

Answers (1)

dynamicallyCRM
dynamicallyCRM

Reputation: 2990

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.

Upvotes: 3

Related Questions