首页 > 其他 > 详细

crm 2011用户更改经理 更改办事处 plugin

时间:2016-08-02 13:36:40      阅读:198      评论:0      收藏:0      [点我收藏+]

背景: 在更改经理或者更改办事处时,使用plugin处理相应的团队.

问题:plugin写完,注册时发现使用update注册没有效果,然后bing得到,这里要使用setbusiness 和 setparent 这两个message 来注册,但是注册工具中选择不到这两个事件.

以下是解决方法:(非官方支持)

 

use OrgName_MSCRM update sdkmessagefilterbase 
set isCustomProcessingStepAllowed=1 
where  sdkmessageid=(select sdkmessageid from sdkmessagebase where name=’setbusiness’) and primaryObjectTypecode=8
And for Change Manager
update sdkmessagefilterbase set isCustomProcessingStepAllowed=1 where sdkmessageid=(select sdkmessageid from sdkmessagebase where name=’setparent’) and primaryObjectTypecode=8

 

重启IIS及CRM异步服务再试试注册应该就成功了.

 

以下是参考资料及原文:

https://social.microsoft.com/Forums/en-US/16a7447e-7b77-4318-8700-98ee428d750c/trigger-a-plugin-in-pre-event-pipeline-when-users-bu-changed?forum=crmdevelopment

https://nishantrana.me/2010/04/29/enabling-plug-in-for-change-business-unit-and-change-manager-for-systemuser-entity/

crm 2011用户更改经理 更改办事处 plugin

原文:http://www.cnblogs.com/BinBinGo/p/5728767.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!