Get notification from Microsoft Graph when deleting event occurrence

寵の児 提交于 2019-12-31 03:06:11

问题


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:


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



来源:https://stackoverflow.com/questions/47248906/get-notification-from-microsoft-graph-when-deleting-event-occurrence

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!