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

SDev 21 Reputation points
2022-11-01T21:12:27.74+00:00

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
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,397 questions
0 comments No comments
{count} votes