Rollback plugin in crm 2011 for operation on the entities other than main entity RRS feed

  • Question

  • Hi,

    I have plugin for creating a sequential number for my custom .

    For this purpose I have 2 entities one is my Custom entity for example named X and my second entity is Sequence entity which keeps the last sequence number.

    I Created a plugin for pre-operation of X. It does 2 things

    1 - some validations and

    2- calls IdGenerator function and generate the sequentialfield:As a result in this function I have an update to a Sequence entity to update the latest sequence and also update of the auto generated field of my custom entity X

    I wonder if something happens and this plugin roll-backs, does it roll-back Update to the Sequence entity or it does only rollback creation of X?

    Any advice would be appreciated

    Friday, August 1, 2014 9:50 PM


  • Yes, it does the roll back in case of any failure while plugin execution.



    • Marked as answer by Maryam_r Monday, August 4, 2014 3:58 PM
    Monday, August 4, 2014 12:04 PM