79251824

Date: 2024-12-04 15:42:19
Score: 0.5
Natty:
Report link

Use the following select statement: toRecipients

Example: GET https://graph.microsoft.com/v1.0/me/messages//?$select=subject,from,receivedDateTime,toRecipients

Response:

[{
  "receivedDateTime": "2024-12-04T01:32:05Z",
  "subject": "Undeliverable: XYZ",
  "bodyPreview": "Your message to [email protected] couldn't be delivered.....",
  "from": {
    "emailAddress": {
      "name": "Microsoft Outlook",
      "address": "[email protected]"
    }
  },
  "toRecipients": [
    {
      "emailAddress": {
        "name": "XYZ",
        "address": "[email protected]"
      }
    }
  ]
}]

For NDRs, you can then evaluate the toRecipients property - this contains the original destination address for NDRs.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: D Nomkin