无法使用Microsoft Graph API访问共享点列表- [英] Unable to access the Sharepoint List using Microsoft Graph API--

查看:68
本文介绍了无法使用Microsoft Graph API访问共享点列表-的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Microsoft图形api,尤其是sharepoint beta api,我经常遇到问题.我知道它的测试版,但仍然;)

Working with the Microsoft graph api and especially the sharepoint beta api and i am constantly running into issues. I know its beta, but still;)

所以问题是当我尝试在图资源管理器中使用图谱API访问共享点列表时 网址是:GET https://graph.microsoft.com/beta/sites/ { site-id}/lists/{list-id}

SO the issue is When i tried to access the sharepoint list using Graph API in graph explorer URL is: GET https://graph.microsoft.com/beta/sites/{site-id}/lists/{list-id}

因此,SiteID我正在传递我的站点租户GUID和列表ID作为共享点列表GUID 而且我在响应中不断遇到错误

So SiteID i am passing my site tenant GUID and List ID as Sharepoint List GUID and i am facing the error continously in Response

{ 错误": { "code":"invalidRequest", "message":提供的ID不适合当前主机", "innerError":{ "request-id":"61efc5b1-88f8-442c-a41d-7213b587318e", "date":"2017-05-10T07:38:04" } } }

{ "error": { "code": "invalidRequest", "message": "Provided id is not suitable for the current host", "innerError": { "request-id": "61efc5b1-88f8-442c-a41d-7213b587318e", "date": "2017-05-10T07:38:04" } } }

如果任何人也遇到过此问题,请告诉我您已经解决的解决方案

IF any one also has faced this issue please let me know the solution you have resolved

推荐答案

网站的ID格式已更改,这是本周对API进行的一组更新的一部分.此处记录了新的格式,但其中包含SharePoint主机名,SPSite.ID和SPWeb.ID作为三元组:

The format of the ID's for sites have changed as part of a set of updates to the API this week. The new format is documented here, but it includes the SharePoint hostname, SPSite.ID, and SPWeb.ID as a triplet:

https://graph.microsoft.com/beta/sites/contoso.sharepoint.com,fc016e3c-d8ae-4ee0-a10c-de6d26788b6a,9a4ea7a5-c3c4-44ae-9f80-273bd67431b8

如果您将主机名添加到ID中,则您的呼叫应重新开始工作.您可以通过请求以下内容来发现主机名:

If you add the hostname into your IDs, your calls should start working again. You can discover the hostname by making a request to:

https://graph.microsoft.com/beta/sites/root/siteCollection/hostname

您现在还可以使用以下搜索语法搜索网站:

You can also search for sites now using the following search syntax:

https://graph.microsoft.com/beta/sites?search={keyword}

这篇关于无法使用Microsoft Graph API访问共享点列表-的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆