星期二, 八月 07, 2007

什么是CRM Callout?

Callout 是微软给我们提供增加CRM 3.0功能的方法之一。软件开发者可以编写自己的程式 (dll),然后通过订阅的方式,在CRM Save 纪录之前后, 让CRM执行你的代码。Callout有两种:Pre-Callout是在纪录Save之前执行, Post-Callout是在纪录Save后执行。 Pre-Callout一般用来做纪录Save之前的更改,我常勇PreCallout 来检查系统要将Save的纪录是不是已经在系统里等等。。。 Post-Callout 我通常用来做系统的集成。

以下是CRM的Callout大家可以订阅 (Subscribe):

Logical Event - Description

PreCreate - Generated before an entity instance is created.
PostCreate - Generated after an entity instance is created.
PreUpdate - Generated before an entity instance is updated.
PostUpdate - Generated after an entity instance is updated.
PreDelete - Generated before an entity instance is deleted.
PostDelete - Generated after an entity instance is deleted.
PreAssign - Generated before an entity instance is assigned to a new owner.
PostAssign - Generated after an entity instance is assigned to a new owner.
PreSetState - Generated before the state is changed for entity instance.
PostSetState - Generated after the state is changed for an entity instance.
PreMerge - Generated before merging two entity instances.
PostMerge - Generated after merging two entity instances.
PreSend - Generated before sending an e-mail.
PostDeliver - Generated after delivering an e-mail

Pre-Callout 模式

Post-Callout 模式

 

下一个Blog教大家来做一个Post-Callout.

没有评论: