An API that connects multiple Microsoft services, enabling data access and automation across platforms
Hi @Umair Ahmed ,
we can subscribe to me/mailFolder/{id}/messages to get change notifications when a message is created in a particular mail folder.
for example if you want to get notified when a new mail arrived in inbox use the following
{
"changeType": "created",
"notificationUrl": "{xxxxx}",
"resource": "/me/mailFolder/('Inbox')/messages",
"expirationDateTime": "{expiry-time}",
"clientState": "SecretClientState"
}
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".