none
Transaction Support

    Question

  • Hi,
     
    Previously i have a replied from my previous inquiry, that there is no transaction support when invoking multiple series of Web Service Calls against Dynamics CRM Server.

    Is there a way to provide transaction support when writing codes for plugin or writing series Web Service calls inside ? or do i need to encapsulate business logic calls inside Stored Procedure , so that i can wrapped it up in the ADO.NET transaction ? but writing Stored Procedures for manipulating CRM tables are not supported way.

    Regards,

    hadi
    Friday, February 20, 2009 9:02 AM

Answers

  • Hi Hadi,
      
    >>that there is no transaction support when invoking multiple series of Web Service Calls against Dynamics CRM Server.
    Correct. There is no transaction support in v4. It is expected in v5.

    >>Is there a way to provide transaction support when writing codes for plugin or writing series Web Service calls inside ? or do i need to encapsulate business logic calls inside Stored Procedure.
    You can write your own compensation logic in the event the CRM platform operation fails. You could do this in the try catch. Or write your code in a way that it checks before it does an operation. I would not write SPs or use ADO to do this. For some reason it doesn't feel like the MS CRM way of doing it. 

    Hope this helps.

    Hassan.

    • Marked as answer by hadi i teo Friday, February 20, 2009 10:24 AM
    Friday, February 20, 2009 10:22 AM