MSCRM Web服务是否支持数据库事务? [英] Does MSCRM web-service support database transactions?
问题描述
对于任何基于Web的数据应用程序,人们都认为数据库事务将是设计的组成部分。环顾CrmService,我发现没有任何迹象表明可以使用交易型 CRUD。是否存在MSCRM不支持/未实现的情况?
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?
如果是,但我错过了,请有人指出正确的方向。我担心要编写大量的修复代码来解决我编写的自定义导入/注册例程中途出现的错误/异常。
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.
推荐答案
否,CRM中没有类似数据库的事务支持。最接近的事情是注册一个运行记录的PreCreate的插件/标注...如果其中某个记录失败,则记录本身将不会被创建,但是在失败之前,仍然可能存在某些成功的步骤。
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.
这篇关于MSCRM Web服务是否支持数据库事务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!