如何使用工作流程在 MS Dynamics CRM 中共享记录
我想执行以下操作:
当销售人员将自定义实体(我们称之为“主要专业知识”)分配给 MS CRM 4.0 中的机会时,系统将与定义为该机会所有者的用户共享该机会相关的“主要专业知识”记录。
我想通过工作流程自动完成此操作,但找不到可以完成此操作的工作流程步骤。 是的,我在一些论坛上读到,这实际上还不可能,只能通过 .NET 程序集实现。
经验,有人吗?
I would like to do the following:
when a Sales person assigns a custom entity (let's call it 'Primary Expertise') to an Opportunity in MS CRM 4.0, the system would share the Opportunity with the user that is defined as the Owner of the associated 'Primary Expertise' record.
I would like to do it automatically via workflow but cannot find the workflow step that would accomplish that. Yes, and I read on some forums that it's actually not possible yet, only via a .NET assembly.
Experience, anyone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
试试这个:
http://crm40sharestep.codeplex.com
Try this:
http://crm40sharestep.codeplex.com
正确,只能通过 .NET 程序集实现。 但是,您可以(如果您使用 CRM 4)让工作流程将所有者更改为活动的所有者,并使用与先前所有者共享选项来允许旧所有者访问您的自定义实体?
Correct, it is only possible via .NET assembly. However you could (If you using CRM 4) have the workflow change the owner to the owner of the activity and use the share with previous owner option to enable the old owner access to your custom entity?
这只能通过调用自定义工作流程活动来实现。 在自定义工作流活动中,您可以通过配置来调用 GrantAccessRequest 和 GrantAccessResponse PrincipalAccess 对象。
有关详细信息,请参阅此“共享对象”部分。
It is possible only by invoking custom workflow activity. Inside the custom workflow activity, you can invoke GrantAccessRequest and GrantAccessResponse by configuring the PrincipalAccess object.
Please refer to this "Sharing Object" section for details.
如果您决定使用自定义插件,您的代码可能如下所示:
If you'll decide to go with custom plugin, your code might look like this: