问题
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