locked
CRM 2011 Prevent Plugin Execution to enter infinite loop RRS feed

  • Question

  • Hello All,

     

    I'm facing an issue and just don't know how to solve this... I've got 2 different plugins on the entity Campaign Activity with the following proposes and configurations:

    1 - Campaign Code Validator

    Propose, validate a promotion code between 2 dates (all custom fields added to the campaign activity entity)

    Registered for:

    * Create; online/offline ; Synchronous  ; with pos-image

    * Update; online/offline ; Synchronous  ; with pre & pos-image

    2 - Marketing List Validator

    Propose, validate if the the marketing lists refarding this campaign activity are from the same member type (all accounts or all contacts or all leads), and update a field that will prevent the button "Distribute Activities" on the ribbon to be enabled if the marketing lists are not of the same type

    Registered for:

    * Create; online/offline ; Synchronous  ; with pos-image

     

    * Update; online/offline ; Synchronous  ; with pre & pos-image

    With this configuration, this 2 plugins will fire each other... and they will enter in an infinite loop and eventually will through an FaultException<OrganizationServiceFault> Exception...
    How can I prevent this or work around, to avoid the inifinite loop to trigger?
    Thanks in advanced
    Mário 

     


    Mario Andre Moreira
    Monday, July 11, 2011 11:19 AM

Answers

All replies