Get notification from Microsoft Graph when deletin

2019-02-26 04:22发布

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.

1条回答
甜甜的少女心
2楼-- · 2019-02-26 05:18

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).

查看更多
登录 后发表回答