question

ParseShyam-2192 avatar image
0 Votes"
ParseShyam-2192 asked ·

Subscription, getting multiple post to my notificationUrl

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"
> }



azure-ad-graph
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JamesTran-MSFT avatar image
0 Votes"
JamesTran-MSFT answered ·

Hi @ParseShyam-2192

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


· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ParseShyam-2192

I just wanted to check in and see if this helped with your issue.

Thank you for your time!

0 Votes 0 ·