Forum Discussion

Alex Massey's avatar
Alex Massey
Copper Contributor
Nov 15, 2022

Automation of MailFlow Status Report via REST

Hi, I am looking for a way to automate the pulling of the MailFlow Status report but I've not been able to find anything that works. There appears to be an old reporting service on https://reports.office365.com however I've read reports its end of life and there is no useful documentation for it.

 

The main metrics I'm looking to export on a monthly basis are: Total mail in/out, Total spam detected in, Total Malware in etc. I'd need these details filtered for the previous month (01/xx/xx - 31/xx/xx) so can use this in our business wide reporting and would need to be available via a REST API.

Is this information available via the Graph? From what I can see under the https://graph.microsoft.com/beta/reports/ endpoint there doesn't seem to be a useful report. What are other organisations doing in this space to report on these metrics outside of the Microsoft ecosystem? From what I have found the only option is to download the excel data after running the GUI report each month manually. Can anyone point me in the right direction, it seems impossible this isn't available somewhere in way that can be automated, it is 2022 after all. 

Resources