Hi @Kyle Webster
You can receive notifications of changes by creating an email subscription.
POST https://graph.microsoft.com/v1.0/subscriptions
Content-type: application/json
{
"changeType": "created,updated",
"notificationUrl": "https://webhook.azurewebsites.net/api/send/myNotifyClient",
"resource": "users/{id}/mailFolders('Inbox')/messages",
"expirationDateTime":"2023-12-20T18:23:45.9356913Z",
"clientState": "secretClientValue",
"latestSupportedTlsVersion": "v1_2"
}
The delay between when the user receives the email and when the script would be activated depends on several factors, such as the network latency, the load on the Microsoft Graph service, and the response time of your webhook endpoint. As far as I know, the Microsoft Graph change notifications service tries to deliver the notification within 30 seconds of the change. However, this is not a guarantee and the actual delivery time may vary.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.