【问题标题】:Dynamics 365 – Entities ER Diagram (Visio) using Metadata Diagram Console in SDKDynamics 365 – 实体 ER 图表 (Visio) 使用 SDK 中的元数据图表控制台
【发布时间】:2019-10-02 17:31:09
【问题描述】:

我使用的是 D365 v9.1,需要从 CRM 为我团队的数据架构师创建 E/R 图。我知道...我知道....我为什么不直接使用 xRM Toolbox 提供的 E/R 图创建器?好吧,xRM工具箱提供的工具只允许我将文件保存为.erd。我的数据架构师开始使用 Erwin,并且一直在努力将 .erd 文件导入 Erwin 而不会失败。所以找到了使用 Dynamics 365 – Entities ER Diagram (Visio) 的解决方法,使用 SDK 中的元数据图控制台在此处找到(这将允许我将输出的 Visio 文件导入 Erwin):https://www.microsoft.com/en-us/download/confirmation.aspx?id=50032。这以 8.x 为目标,但是可以通过修改此处 https://sachinbansal.blog/2018/03/29/dynamics-365-entities-er-diagram-visio-using-metadata-diagram-console-in-sdk/ 后面的代码来解决此问题。问题是我已经按照说明修改了 EXACTLY 背后的代码,但收到以下错误:

以下是允许通过 TLS 1.2 与 9.x 进行通信的代码块。同样,我已经进行了推荐的修改,但仍然收到错误。

 try
                {
                    // Obtain the target organization’s Web address and client logon
                    // credentials from the user.
                    //ServerConnection serverConnect = new ServerConnection();
                    //ServerConnection.Configuration config = serverConnect.GetServerConfiguration();
                    string strUrl = string.Empty;
                    strUrl = “https://<orgname>.api.crm9.dynamics.com/XRMServices/2011/Organization.svc“;
                    ClientCredentials credential = new ClientCredentials();
                    credential.UserName.UserName = “*********.onmicrosoft.com”;
                    credential.UserName.Password = “***************”;
                    // Set security protocol to TLS 1.2 for version 9.0 of Customer Engagement Platform
                    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
                    // Connect to the Organization service.
      // The using statement assures that the service proxy will be properly   disposed.
    using (_serviceProxy = new OrganizationServiceProxy(new Uri(strUrl), null, credential, null))
                    {
                        // This statement is required to enable early-bound type support.
                        _serviceProxy.EnableProxyTypes();
                        _serviceProxy.Timeout = TimeSpan.MaxValue;
                        // Load Visio and create a new document.
                        application = new VisioApi.Application();
    application.Visible = false; // Not showing the UI increases       rendering speed
                        builder.VersionName = application.Version;
                        document = application.Documents.Add(String.Empty);
                        builder._application = application;
                        builder._document = document;

【问题讨论】:

    标签: dynamics-crm entity-relationship microsoft-dynamics diagram dynamics-365


    【解决方案1】:

    此问题的解决方案是从 CRM SDK 中删除特定于 8.x 版的所有引用,并重新加载 9.x 版开发指南程序集并重新构建面向 .NET 4.6.1 版的解决方案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-01-21
      • 2019-02-17
      • 2020-12-07
      • 1970-01-01
      • 2019-06-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多