简体   繁体   English

我可以使用C#或Powershell添加/更新CRM Dynamics插件程序集吗?

[英]Can I add/update CRM Dynamics plugin assemblies using C# or Powershell?

I need to update Dynamics CRM 365 (on-premise) plugins in a repetable way using Octopus Deploy, but to do that I need to find a way to script this update instead of doing it manually. 我需要使用Octopus Deploy以可重复的方式更新Dynamics CRM 365(本地)插件,但为此,我需要找到一种方法来编写此更新的脚本,而不是手动进行。

Is it possible to do it using the CRM SDK or directly using Powershell? 是否可以使用CRM SDK或直接使用Powershell做到这一点?

Yes, it is possible to perform plugin registration with the CRM SDK and/or Powershell. 是的,可以使用CRM SDK和/或Powershell执行插件注册。

This can be achieved by creating/updating/deleting certain records (entity logical names are pluginassembly , plugintype , sdkmessageprocessingstep , and sdkmessageprocessingstepimage ) with suitable attribute values as well as matching references to other plugin-related entities like sdkmessage and sdkmessagefilter . 这可以通过创建/更新/删除某些记录(实体逻辑名称为pluginassemblyplugintypesdkmessageprocessingstepsdkmessageprocessingstepimage ),使用合适的属性值以及与其他与插件相关的实体(例如sdkmessagesdkmessagefilter引用进行匹配来sdkmessagefilter

At my company, we have developed our own automatic plugin registration through code , which can be performed by running a simple script . 在我公司,我们已经通过代码开发了自己的自动插件注册 ,可以通过运行简单的脚本来执行。 This script can also be run by a build server (like Octopus or VSO), to automatically create/update/delete the plugin registrations in CRM to match those found in our code. 该脚本也可以由构建服务器(例如Octopus或VSO)运行,以自动创建/更新/删除CRM中的插件注册,以匹配我们代码中的注册。

You can check out the source code for it (written in F#) on our GitHub . 您可以在我们的GitHub上签出它的源代码(用F#编写)。

Dynamics CRM plugins are part of the CRM Solution. Dynamics CRM插件是CRM解决方案的一部分。 What you are looking for is a way to deploy CRM Solutions. 您正在寻找的是一种部署CRM解决方案的方法。

When planning for deployment decide first if you are going to deploy your solution in managed or unmanaged form. 在计划部署时,请首先确定要以托管形式还是非托管形式部署解决方案。 Then decide for a tool. 然后确定一个工具。 The CRM SDK has a deployment tool. CRM SDK具有部署工具。 There are also PowerShell scripts available. 还有一些PowerShell脚本可用。 (See on TechNet: Administer the deployment using Windows PowerShell and Deploy packages using Dynamics CRM Package Deployer and Windows PowerShell .) (请参阅TechNet: 使用Windows PowerShell管理部署,以及使用Dynamics CRM Package Deployer和Windows PowerShell部署软件包 。)

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

相关问题 是否可以使用Powershell添加和配置Dynamics CRM工作流程 - Is it possible to add and configure Dynamics CRM workflows with Powershell Powershell Dynamics CRM,如何向用户添加两个队列 - Powershell Dynamics CRM, how to add two queues to a user 使用Powershell的Dynamics CRM Online V 9部署软件包-问题 - Dynamics CRM online V 9 Deploy packages using powershell - issues 通过Powershell与应用程序用户在线连接到Dynamics CRM - Connect with Powershell to Dynamics CRM online with application user 我可以用C#和Powershell做什么? - What can I do with C# and Powershell? 如何使用c#中的Powershell类更新Active Directory中的extensionAttribute3属性? - How I can update the extensionAttribute3 Attribute in Active Directory with Powershell class in c#? 使用 PowerShell 从 Dynamics CRM(在线)检索帐户实体名称列表 - Retrieve list of account entity names from Dynamics CRM (Online) using PowerShell 使用 Azure Powershell(AZ 模块)为 Dynamics CRM Online 设置 Azure Ad Api 权限 - Setting Azure Ad Api permission for Dynamics CRM Online using Azure Powershell (AZ Module) C#无法运行PowerShell脚本添加用户Active Directory - C# Can not run PowerShell script to add user Active Directory C#和PowerShell:如何添加逗号分隔的参数? - C# and PowerShell: How do I add comma delimited parameters?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM