I use pull subscriptions in exchange managed api to catch newly created, modified or deleted items.
It works fine for created or modified appointments, but for some reason it doesn’t work for deleted items. Here is how i created the subscription:
PullSubscription subscription = m_exchangeService.SubscribeToPullNotifications(
new FolderId[] { WellKnownFolderName.Calendar },
1440,
null,
EventType.Created, EventType.Modified, EventType.Deleted);
subscriptions.Add(usermail, subscription);
Do I have to configure something in exchange to make it work? Does this maybe only work for hard deleted appointments, and not for appointments that moved to the deleted folder?
Items are moved to the recycle bin. Therefore, you don’t get a delete notification.
Get the FolderId of the Delected Items folder by binding to it via the WellknownFolder Enumeration. Then compare the UniqueId of that folder with the unique Id of the target of the move event.