Subscription, getting multiple post to my notificationUrl

Parse Shyam 1 Reputation point
2020-05-29T10:57:05.15+00:00

I'm trying to use graph subscription API for my calendar events

  • Its working fine but i'm getting redundant multiple times the same data even though i've single subscription on defined url.

POST-> https://graph.microsoft.com/subscriptions

> {
> "changeType": "updated",
> "notificationUrl": "https://7a4bcf1765d6.ngrok.io/v1/microsoft/notify_me",
> "resource": "me/events",
> "expirationDateTime":"2020-07-29T14:23:45.9356913Z",
> "clientState": "secretClientValue",
> "latestSupportedTlsVersion": "v1_2"
> }

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,428 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,361 Reputation points Microsoft Employee
    2020-05-30T00:33:10.4+00:00

    Hi @Parse Shyam

    Reading your post, I can see you're using the Graph API to receive calendar events however, you're receiving multiple notifications even though you have a single subscription. Looking at your post it looks like you're using the below request:

    POST https://graph.microsoft.com/subscriptions

    {

    changeType: updated

    notificationUrl: https://7a4bcf1765d6.ngrok.io/v1/microsoft/notify_me

    resource: me/events

    expirationDateTime: 2020-07-29T14:23:45.9356913Z

    clientState: secretClientValue

    latestSupportedTlsVersion: v1_2

    }

    Questions:

    Is this the first time you're setting up calendar events using the Graph API?

    • If so, can you confirm the link you used to set up your event. If this isn't the first time setting up the Graph API for your calendar events when did this issue start?

    Since you're using a top-level resource "me/events" have you tried to further limit the scope of your resource?

    • When subscribing to Outlook resources such as /messages, /events, /contacts, you can also use "/users/<guid-user-id>/events", to hopefully limit the scope and potential redundancy.

    Are you able to provide a screenshot of your redundant notifications?

    ----------

    Additional links for your reference:

    Support Resources using Microsoft Graph API

    Event resource types