sharepoint - 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
它只是不适用于分析。
根据文档,分析并非在所有国家部署中都可用,但我在全球租户中,所以我认为它是受支持的。
解决方案
在网址末尾添加“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
推荐阅读
- r - 以有效的方式处理数据(库存数据)
- ios - SwiftUI - Google AdMob 插页式广告未显示在 onAppear 中
- sass - Less 中是否有 Sass 风格的映射键功能?
- python - 如何使用 sqlalchemy 计算平均数?
- yaml - CloudFormation YAML 状态机:无法识别令牌的 INVALID_JSON_DESCRIPTION
- python - 如何从数组中正确提取 PNG 格式的标记掩码?
- c# - 如果我之前禁用了一个脚本,如果我稍后调用该事件,是否可以调用该对象的订阅不同类的事件的方法?
- javascript - React.js 中未显示下拉值
- python - 无法将 python flask api 输入与 mysql 查询值匹配
- regex - 提取特定文本块并将其放入新文档中