如何以编程方式导入 CRM 组织?
有没有什么方法可以通过 powershell 或一些我在 CRM 4.0 SDK 中找不到的 api,让我们能够自动从生产 CRM 4.0 环境刷新到临时 CRM 服务器?显然,我们可以编写数据库备份/恢复脚本,但我找不到在不使用 MMC 管理单元的情况下启动 CRM 导入组织的方法。
Is there any way via powershell or some api that I can't seem to find in the CRM 4.0 SDK, that would allow us to automate the refresh from our production CRM 4.0 environment to a Staging CRM server? Obviously the db backup / restore we can script but I cannot find a way to kick off a CRM Import Organization without using the MMC snap-in.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个 部署 SDK适用于 Dynamics CRM 4。然而,您感兴趣的部分不是公共 api 的一部分。
该文档提到了 Deployment Manager 应该使用的
ImportOrganizationRequest
。不幸的是,它被标记为内部使用。然而,这个 API 应该不会有任何变化,因为 Dynamics CRM 2011 即将推出,因此我会尝试一下。您可以使用 msdn 论坛中的这篇文章 作为起点。
顺便说一句:Dynamics CRM 2011 附带了一组 PowerShell CmdLets,这使得管理更加可脚本化。特别是
Import-CrmOrganization
是您可以使用的 CmdLet。有关更多信息,请参阅我的博文。there is a Deployment SDK for Dynamics CRM 4 available. However the interesting part for you is not part of the public api.
The documentation mentions the
ImportOrganizationRequest
which should be used by the Deployment Manager. Unfortunately, it is marked for internal use. However, there should be no changes to this API as Dynamics CRM 2011 is just around the corner and therefore I would give it a try.You could use this post in the msdn forums as a starting point.
btw: Dynamics CRM 2011 comes with a set of PowerShell CmdLets which makes the adminstration much more scriptable. Especially
Import-CrmOrganization
would be the CmdLet which you could use. See my blog post for further information.