我尝试使用Microsoft Flow中的Microsoft Graph查询SharePoint网站的分析。在执行此操作之前,我在Graph Explorer中进行了尝试。
使用以下网址。
<div id="test"></div>
显示此错误信息。
我们在将请求发送到Graph API时遇到问题。要获得帮助,请使用标签[microsoftgraph]在StackOverflow上与我们联系。
我对这两个查询没有问题:
https://graph.microsoft.com/v1.0/sites/xxxx.sharepoint.com,xxxx,xxxx/analytics
它仅与分析不兼容。
基于documentation,Analytics(分析)并非在所有国家/地区部署中都可用,但是我在全球租户中,因此我认为它受支持。
答案 0 :(得分:0)
在网址末尾添加“ 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