简体   繁体   English

从MS Dynamics CRM到Web服务的回调

[英]Callbacks from MS Dynamics CRM to a webservice

We're building a system that is tightly integrated with a clients CRM install, and need to have a callback fired when an entity is updated, created or deleted. 我们正在构建一个与客户端CRM安装紧密集成的系统,并且需要在更新,创建或删除实体时触发回调。 This callback will ideally send the entity name and id to an external service via a HTTP get request. 理想情况下,此回调将通过HTTP get请求将实体名称和ID发送到外部服务。

I've not found any docs online that help - can anyone point me in the right direction? 我没有找到任何在线帮助的文档 - 有人能指出我正确的方向吗?

You're looking for plugins: http://msdn.microsoft.com/en-us/library/dd393295.aspx . 您正在寻找插件: http//msdn.microsoft.com/en-us/library/dd393295.aspx

You can register a plugin on Create, Update, Delete, etc. of an entity, and then run any custom code you'd like. 您可以在实体的创建,更新,删除等上注册插件,然后运行您想要的任何自定义代码。 You'll definitely have access to the entity name and the id, as well as fields that were updated, information on the user who initiated the call, etc. 您肯定可以访问实体名称和ID,以及更新的字段,发起呼叫的用户的信息等。

Just know that in MSCRM 3.0 & 4.0, plugins run outside the actual database transaction, so it's possible the event could fire in CRM, but the plugin fails and the event still goes through. 只知道在MSCRM 3.0和4.0中,插件在实际数据库事务之外运行,因此事件可能在CRM中触发,但插件失败并且事件仍然存在。 In MSCRM 2011, they run inside the transaction, and can stop the CRM event from happening if need be. 在MSCRM 2011中,它们在事务内部运行,并且可以在需要时停止发生CRM事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM