Microsoft Graph: Getting "Deleted" change notification for sent message

60 views Asked by At

I created a messages subscription to Microsoft graph api to track changes.

When I send an email, I get many created, updated, and deleted change notifications for the item. It is unclear what the "final" state should be when these notifications arrive in no particular order.

I can process the created and updated notifications by storing and checking changeKeys and checking the lastModifiedDateTime.

But I am finding it difficult to process the "deleted" change notifications because they have no changeKey or lastModifiedDateTime, and I am unsure how to distinguish this unnecessary "deleted" notification (which I want to ignore) from a real "deleted" notification generated by deleting a mail item (which I would want to ingest).

Is it expected to get a deleted notification when sending mail? If so, how do I process it to ensure I end up in the correct state? If not, any ideas why this may be happening?

0

There are 0 answers