locked
Register plugin steps programitically RRS feed

  • Question

  • Hi all,

    Is there any way to register plugin steps programatically by using C# code

    scenario:I have a require that register steps to the another entities on the creation of records in the another enitiies

    Monday, March 23, 2015 5:46 AM

All replies

  • Hello,

    You can do this using the SDK: SdkMessageProcessingStep entity messages and methods

    Hope it helps,

    Kind regards

    Monday, March 23, 2015 7:23 AM
  • One thing to be aware of, I think that registering plugin steps is one of the operations that CRM uses a different transaction isolation level for. What this means is that you may get errors if you try any data modification (create or update) on the sdkmessageprocessingstep in plugin stages 20 or 40 (within the transaction). The main way around this is to set initiating plugin step to run asynchronously

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Monday, March 23, 2015 2:20 PM
    Moderator