【问题标题】:How to connect to sharepoint CRM document library with onedrive api?如何使用 onedrive api 连接到 sharepoint CRM 文档库?
【发布时间】:2017-05-24 15:02:10
【问题描述】:

我们与网站 CRM 有在线共享点。

我使用OneDrive SDK for iOS。 我可以使用 onedrive api 连接到主文档库。我使用了有用的"github example" 来配置它。

resourceId: https://{tenant}.sharepoint.com/
apiEndpoint: https://{tenant}.sharepoint.com/CRM/_api/v2.0

这个库的网址是:

https://{tenant}.sharepoint.com/CRM/Shared Documents

这个配置很好,工作正常。

我在使用此站点上的其他文档库时遇到问题。 Dynamics CRM 创建了自己的文档库。例如帐户。

我可以在网上打开这个图书馆。浏览器网址为: https://{tenant}.sharepoint.com/CRM/account/Forms/AllItems.aspx

但我无法连接到此 CRM 库。 我尝试了简单的索要儿童帐户:

https://{tenant}.sharepoint.com/CRM/_api/v2.0/drive/items/root/children/account

此 API 请求返回错误 404。

我还将 apiEndpoint 修改为:

https://{tenant}.sharepoint.com/CRM/account/_api/v2.0

结果是一样的。错误 404 - 未找到。

请帮助我正确配置。

【问题讨论】:

    标签: sharepoint dynamics-crm onedrive


    【解决方案1】:

    确切地说,您的问题是关于 SharePoint,而不是 OneDrive 或 CRM。

    这是对 SharePoint REST 端点的引用:https://msdn.microsoft.com/en-us/library/office/jj860569.aspx

    如果您想要帐户库中的项目,您可以像这样使用 rest api: https://tenant.sharepoint.com/crm/_api/web/lists/GetByTitle('账户')/items

    【讨论】:

      猜你喜欢
      • 2016-05-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-01
      • 2019-01-10
      • 2010-09-21
      相关资源
      最近更新 更多