locked
Two Plugin on an entity for a same message with same execution order RRS feed

  • Question

  • Hi,

    I have a query related to plugin execution order. Suppose if i have a plugin for a same message with same execution order "1". So which plugin would trigger first?

    Regards,

    SB

    Tuesday, March 11, 2014 9:32 AM

Answers

  • The plugin of the message which registered first will trigger first.

    E.g.

    Update message of Contact is registered for Plugin A

    Then, Update message of Contact is registered for Plugin B with the same pipeline stage and execution order.

    When the Contact is updated, Plugin A will be triggered first, followed by plugin B.

    Now, Unregister the Update message of Contact for Plugin A

    Then, register again for the Update message of Contact for Plugin A

    When the Contact is updated, Plugin B will be triggered first in this time.

    • Marked as answer by Sujatha B Tuesday, March 11, 2014 11:00 AM
    Tuesday, March 11, 2014 9:52 AM