删除事件发生时从Microsoft Graph获取通知 [英] Get notification from Microsoft Graph when deleting event occurrence

查看:53
本文介绍了删除事件发生时从Microsoft Graph获取通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已订阅事件(https://outlook.office.com/api/v2.0/me/events)推送通知.

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

当我删除一个重复发生主事件的事件时,我收到具有主事件ID而不是特定发生事件ID的UPDATED通知.

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

我怎么知道哪个事件被删除了而不与以前的所有重复事件进行比较?而且不会仅接收主ID事件.

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

推荐答案

删除"并出现时,从技术上讲,您并不是在删除实体.您实际上是在母版的重复模式中添加例外.这就是为什么您会收到有关主机已更新的通知,而不是有关事件已删除的通知的原因.

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.

您可以通过调用事件对象的集合(对于给定的主控).您可以通过查看type属性(可能的值为SingleInstanceOccurrenceExceptionSeriesMaster)来确定对象是发生还是异常.

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

这篇关于删除事件发生时从Microsoft Graph获取通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆