简体   繁体   English

在 Microsoft Dynamics 365 CRM 中导入解决方案时在实体上注册插件

[英]Register a Plugin on a Entity when a Solution is imported in Microsoft Dynamics 365 CRM

I have a use case in Dynamics CRM, where there is a Plugin inside a solution.我在 Dynamics CRM 中有一个用例,其中解决方案中有一个插件。 Once the solution is imported successfully, the Plugin must be automatically registered to a particular Entity.成功导入解决方案后,插件必须自动注册到特定实体。

Any help would be appreciated.任何帮助,将不胜感激。

Thanks in advance.提前致谢。

using web you have the option when you import solution as below使用 web 导入解决方案时,您可以选择如下

在此处输入图像描述

If you wish to do it programatically如果您希望以编程方式进行

You need to set the property PublishWorkflows to true您需要将属性PublishWorkflows设置为true

ImportSolutionRequest request = new ImportSolutionRequest();
request.PublishWorkflows = true;

I might be missing something, but as far as I understand, you should add Sdk Message Processing Steps to your solution, and when importing, check Enable any SDk message processing steps included in this solution Obviously, you also need proper Plug-in Assembly added to this solution.我可能遗漏了一些东西,但据我了解,您应该将Sdk Message Processing Steps添加到您的解决方案中,并在导入时选中Enable any SDk message processing steps included in this solution显然,您还需要添加适当的Plug-in Assembly到这个解决方案。

This will cause to plugin and steps be deployed with solution.这将导致插件和步骤与解决方案一起部署。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM