【问题标题】:Difference between Pre-operation and Post Operation when do we go for pre operation,pre operation will work on retrieve?Pre-operation 和 Post Operation 的区别 什么时候进行 pre-operation,pre-operation 会在retrieve 上起作用?
【发布时间】:2014-06-23 03:46:16
【问题描述】:

Pre 操作会在 Retrieve、create、update 上起作用,那么为什么要 post 操作呢? 后期操作也将工作。那为什么要预操作。你能请任何人澄清我吗

【问题讨论】:

标签: dynamics-crm-2011 dynamics-crm


【解决方案1】:

术前: 在主系统操作之前执行的插件管道。

Post-operation:

主要操作后要执行的插件的管道。:

For Example: Pre-Operation

假设我们有一个业务需求,即 CRM 中的报告在发送后不应被删除。

所以我们将编写一个要在Pre-Operation 上注册的插件并检查发送日期时间,如果它是一个已发送报告,我们将抛出一个异常,并显示无法删除此报告的消息。 So our plugin executes before the main Operation 防止删除。

For Example: Post-Operation

假设我们有一些像Account这样的实体,我们想用一些外部系统来Synchronize。我们将编写一个要在Post-Operation 上注册的插件并将一些通知/数据发送到我们想要Sync 的外部系统

【讨论】:

  • 是的。检索前的操作通常用于以某种方式过滤您的结果。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-12-27
  • 1970-01-01
  • 2022-12-02
  • 2022-12-28
  • 1970-01-01
相关资源
最近更新 更多