Alexandr Mendelevych
Alexandr Mendelevych

Reputation: 179

Get notification from Microsoft Graph when deleting event occurrence

I have subscribed to events (https://outlook.office.com/api/v2.0/me/events) push notification.

When I delete one event of recurrence master event, I receive UPDATED notification with id of master event and not specific occurrence event id.

How can I know which event was deleted without comparison with all previous recurrence events? And not receive only master id event.

Upvotes: 3

Views: 818

Answers (1)

Marc LaFleur
Marc LaFleur

Reputation: 33094

When you "delete" and occurrence, you're technically not deleting an entity. You're actual adding an exception to the master's recurrence pattern. This is why you're receiving a notification that the master was updated rather than a notification that an event was deleted.

You can see the list of event occurrences and exceptions by calling the /instances. This will return a collection of event objects for a given master. You can determine if an object is an occurrence or an exception by looking at the type property (possible values are SingleInstance, Occurrence, Exception, or SeriesMaster).

Upvotes: 4

Related Questions