简体   繁体   English

Microsoft Graph API 报告为空

[英]Microsoft Graph API report is empty

I am trying to get Outlook reports using Microsoft Graph API.我正在尝试使用 Microsoft Graph API 获取 Outlook 报告。 I am getting the reports for two tenants, let's say Tenant A and Tenant B.我正在获取两个租户的报告,假设是租户 A 和租户 B。

For some of the API, I am getting empty reports (ie I am getting just the header).对于一些 API,我得到的是空报告(即我得到的只是标题)。

For example, when I query:例如,当我查询时:

https://graph.microsoft.com/v1.0/reports/getEmailActivityCounts(period='D7')

I get:我得到:

Report Refresh Date,Send,Receive,Read,Report Date,Report Period

Some of the API calls work only for tenant A and some work only for Tenant B.一些 API 调用仅适用于租户 A,有些仅适用于租户 B。

Can anybody tell me why it works like this?谁能告诉我为什么它会这样工作?

I got a response from the Microsoft support team that if you do not use the service, there will be no reports to show.我收到了 Microsoft 支持团队的回复,如果您不使用该服务,将不会显示任何报告。 Once you begin using the service, it will reflect that.一旦您开始使用该服务,它就会反映出来。 It can take 24-72 hours for reports to be generated.生成报告可能需要 24-72 小时。

And the following two links gives us more information on the topic以下两个链接为我们提供了有关该主题的更多信息

https://docs.microsoft.com/en-us/microsoftteams/teams-analytics-and-reports/teams-reporting-reference https://docs.microsoft.com/en-us/microsoftteams/teams-analytics-and-reports/teams-reporting-reference

https://docs.microsoft.com/en-us/microsoft-365/admin/activity-reports/activity-reports?view=o365-worldwide https://docs.microsoft.com/en-us/microsoft-365/admin/activity-reports/activity-reports?view=o365-worldwide

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM