首页 > 解决方案 > Microsoft Graph 获取共享点站点分析不起作用

问题描述

我尝试使用 Microsoft Flow 中的 Microsoft Graph 查询 SharePoint 网站的分析。在我这样做之前,我在 Graph Explorer 中尝试了这个。

使用以下网址。

https://graph.microsoft.com/v1.0/sites/xxxx.sharepoint.com,xxxx,xxxx/analytics

显示此错误消息。

将此请求发送到 Graph API 时出现问题。如需帮助,请在 StackOverflow 上使用标签 [microsoftgraph] 与我们联系。

我对这两个查询没有问题:

https://graph.microsoft.com/v1.0/sites/xxxx.sharepoint.com,xxxx,xxxx

https://graph.microsoft.com/v1.0/sites/xxxx.sharepoint.com,xxxx,xxxx/lists

它只是不适用于分析。

根据文档,分析并非在所有国家部署中都可用,但我在全球租户中,所以我认为它是受支持的。

标签: sharepointmicrosoft-graph-apisharepoint-online

解决方案


在网址末尾添加“lastSevenDays”或“allTime”说明符可能会对您有所帮助

https://graph.microsoft.com/v1.0/sites/xxxx.sharepoint.com,xxxx,xxxx/analytics/lastSevenDays
https://graph.microsoft.com/v1.0/sites/xxxx.sharepoint.com,xxxx,xxxx/analytics/allTime

推荐阅读