title: Get-MailDetailATPReport didn't work whereas Get-MailDetailSpamReport and Get-MailDetailMalwareReport worked
body: <p>Recently, after the deprecation of Get-MailDetailSpamReport and Get-MailDetailMalwareReport command-lets, Microsoft has suggested using Get-MailDetailATPReport to get that information. Even searching for those two deprecated command-lets lands on the MS doc for Get-MailDetailATPReport.</p>
  <p>But the new command-let, Get-MailDetailATPReport doesn't return any data for my tenant. However, I was using Get-MailDetailSpamReport and Get-MailDetailMalwareReport to get info on my tenant until it was deprecated. Though I can see the results in UI (<a href="https://security.microsoft.com/reports/TPSEmailSpamReportATP" rel="nofollow noreferrer">https://security.microsoft.com/reports/TPSEmailSpamReportATP</a>), the Get-MailDetailATPReport returns no data.</p>
  <p>I was able to create another trial tenant of the same subscription (M365 E3) yet it didn't work. I did some research and found that It didn't work in M365 Business tenants as well. Contrarily E5 tenants only worked.</p>
  <p>It is a bug that the values are displayed in UI but not returned in PowerShell. As the command-lets were deprecated recently, I'm sure this issue will be noticed by many organizations.</p>