Using MSGraph to download emails for Exchange Online with Advanced Threat Protection (ATP) Enabled

SDev 21 Reputation points

We have a process that downloads emails, using MSGraph, at regular intervals (for example...every 10 minutes).
Once downloaded, the emails are examined and attachments are imported for additional processing.

We have a customer who moved to Office 365 Exchange Online and has Advanced Threat Protection enabled.

We are downloading the emails, but a subset of the emails (typically emails that were received within a minute of when we initiated the download) are failing.
We assume that these emails have not had the ATP post-delivery protections scan executed on them...yet.

Is there a method to filter out Emails that are still waiting for the ATP post-delivery protections to be executed?

Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
796 questions
Microsoft Graph SDK
Microsoft Graph SDK
A Microsoft software developer kit designed to simplify building high-quality, efficient, and resilient applications that access Microsoft Graph.
879 questions
0 comments No comments
{count} votes