[英]Is it possible to disable message plugin from firing in MS CRM 2011
The situation is following: 情况如下:
I've created plugin on RevokeAccess
message in MS CRM. 我在MS CRM中的
RevokeAccess
消息上创建了插件。 And in the same time I'm executing RevokeAccessRequest
from another piece of code. 同时我从另一段代码执行
RevokeAccessRequest
。 Logically, RevokeAccess
plugin fires in this case too. 从逻辑上讲,
RevokeAccess
插件也会在这种情况下触发。
Is there any approach to forbid plugins from firing in certain cases? 在某些情况下,是否有任何禁止插件的方法?
You might be able to stop it firing by checking the context depth. 您可以通过检查上下文深度来停止它。 This shows how nested the call is ie if it was called from another plugin or straight from CRM
这显示了如何嵌套调用,即它是从另一个插件调用还是直接从CRM调用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.