MSCRM Web服务是否支持数据库事务?

时间:2021-11-06 07:18:06

One would assume with any web-based data application that database transactions would be an integral part of the design. Looking around at CrmService, I can't find anything that suggests that transactional 'CRUD's are available. Is it the case that this is not supported/implemented in MSCRM?

可以假设任何基于Web的数据应用程序,数据库事务将是设计的组成部分。看看CrmService,我找不到任何暗示交易'CRUD可用的东西。在MSCRM中是否支持/实现这种情况?

If it is, and i have missed it, could someone please point me in the right direction. I fear coding a whole lot of 'repair code' to cater for errors/exceptions half way through a custom import/registration routine that I have coded.

如果它是,我错过了,有人可以指出我正确的方向。我担心编码大量的“修复代码”,以便在我编写的自定义导入/注册例程的一半时间内处理错误/异常。

3 个解决方案

#1


No, there is no database-like transaction support in CRM. About the closest thing would be registering a plugin/callout that runs PreCreate of a record... if something in there fails, the record itself will not be created, but there could still be steps that did succeed before one that failed.

不,CRM中没有类似数据库的事务支持。关于最接近的事情是注册运行PreCreate记录的插件/标注...如果其中的某些内容失败,则记录本身将不会被创建,但仍有一些步骤在失败之前成功。

#2


Well, Dynamics CRM 4.0 does not include transaction support.

那么,Dynamics CRM 4.0不包括事务支持。

But, fortunately, the 5.0 version will ... see: http://blogs.msdn.com/ukcrm/archive/2008/11/10/what-s-new-in-crm5.aspx

但是,幸运的是,5.0版本将...见:http://blogs.msdn.com/ukcrm/archive/2008/11/10/what-s-new-in-crm5.aspx

#3


I have also inquired regarding this issue at the Dynamics CRM Forum

我还在Dynamics CRM论坛上询问了这个问题

Unfortunately there is no transaction support for the current Dynamics CRM Web Services. This is quite dangerous, since our custom solution invoking several web services call to implement one holistic unit of work, and if one of the web service call encountered error during the execution, it will create data integrity issue

遗憾的是,当前的Dynamics CRM Web服务没有事务支持。这是非常危险的,因为我们的自定义解决方案调用多个Web服务调用来实现一个整体工作单元,并且如果其中一个Web服务调用在执行期间遇到错误,则会创建数据完整性问题

Regards

hadi teo

#1


No, there is no database-like transaction support in CRM. About the closest thing would be registering a plugin/callout that runs PreCreate of a record... if something in there fails, the record itself will not be created, but there could still be steps that did succeed before one that failed.

不,CRM中没有类似数据库的事务支持。关于最接近的事情是注册运行PreCreate记录的插件/标注...如果其中的某些内容失败,则记录本身将不会被创建,但仍有一些步骤在失败之前成功。

#2


Well, Dynamics CRM 4.0 does not include transaction support.

那么,Dynamics CRM 4.0不包括事务支持。

But, fortunately, the 5.0 version will ... see: http://blogs.msdn.com/ukcrm/archive/2008/11/10/what-s-new-in-crm5.aspx

但是,幸运的是,5.0版本将...见:http://blogs.msdn.com/ukcrm/archive/2008/11/10/what-s-new-in-crm5.aspx

#3


I have also inquired regarding this issue at the Dynamics CRM Forum

我还在Dynamics CRM论坛上询问了这个问题

Unfortunately there is no transaction support for the current Dynamics CRM Web Services. This is quite dangerous, since our custom solution invoking several web services call to implement one holistic unit of work, and if one of the web service call encountered error during the execution, it will create data integrity issue

遗憾的是,当前的Dynamics CRM Web服务没有事务支持。这是非常危险的,因为我们的自定义解决方案调用多个Web服务调用来实现一个整体工作单元,并且如果其中一个Web服务调用在执行期间遇到错误,则会创建数据完整性问题

Regards

hadi teo