【问题标题】:How to integrate Microsoft Dynamics 365 CRM Common Data Service using php?如何使用 php 集成 Microsoft Dynamics 365 CRM Common Data Service?
【发布时间】:2020-10-01 17:37:04
【问题描述】:

我想使用 php 集成 Microsoft Dynamics 365 CRM Common Data Service。我想使用通用数据服务执行联系人实体的 CRUD。

身份验证 我只有一个选项可以使用“基于 ClientId 或 Client Secret 的身份验证”方法连接 Common Data 服务。我无法使用任何其他身份验证和授权方法。

我已按照here 的文档进行操作,但找不到任何足够的解决方案。

微软在here 提供了一个很好的教程,但我只有客户端 ID、客户端密码和 url。

是否有任何 PHP 库可用于客户端 ID 和基于机密的身份验证?

【问题讨论】:

    标签: php dynamics-crm common-data-service


    【解决方案1】:

    花了一天的时间,我得到了解决方案,即AlexaCRM library。通过使用这个库,我可以连接到 microsoft dynamics 并执行 curd 操作。

    【讨论】:

      【解决方案2】:

      您可以在网上找到examples 和图书馆,例如Lightweight connector library。我不是 php 背景的,我不能自己测试这个 - 所以你从这里拿它。

      $RDynamics = new RDynamics(array(
          "base_url"              => "https://YOUR_CRM_INSTANCE.crm4.dynamics.com",
          "authEndPoint"          => "https://login.windows.net/common/oauth2/authorize",
          'tokenEndPoint'         => 'https://login.windows.net/common/oauth2/token',
          'crmApiEndPoint'        => 'https://YOUR_CRM_INSTANCE.api.crm4.dynamics.com/',
          "clientID"              => "***", 
          "clientSecret"          => "***", 
          'user'                  => '***',
          'pass'                  => '*'
      ));
      

      更新:

      围绕实现它的不同方式有些困惑。 Read more

      【讨论】:

      • 看来你没有读过这个问题。对于身份验证,我只有 url、client_id 和 client_secret。我没有 RDynamics 使用的凭据。
      • @Saif 看起来您没有正确阅读我的答案。也许我的第一个链接会回答你。如果您研究过,那么在 SO 中的多个 php 问题中都提到了 Alexa。
      • 在这个平台上提问之前,我已经完成了你的第一个答案。也许是什么意思?
      猜你喜欢
      • 2019-07-18
      • 2019-02-25
      • 2017-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-07
      • 1970-01-01
      • 2020-03-19
      相关资源
      最近更新 更多