Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exchange Web Service managed, get deleted appointments

I am about to write a ews-application to connect exchange with another calendar programm. What occured to me, how do I get to know, which appointments get deleted on exchange? Is there a way to tell? I couldn't find it in the API and documentation.

Thanks in advance.

like image 630
markus Avatar asked Sep 14 '11 14:09

markus


1 Answers

Depending on how a user deletes an appointment (or any item), different things are done:

  • Soft-Delete: The item is moved to the recycle bin of the mailbox.
  • Hard-Delete: The item is instantly removed.

You have multiple ways to get information about deleted items:

  • Query the folder using a FindItems call and select ItemTraversal.Associated in the Traversal property of the ItemView. Note: This requires Exchange 2010.
  • Use the SyncFolderItems at one time and store the synchronization cookie somewhere. Later, execute the SyncFolderItems again using the previously stored cookie. Exchange will now give you a detailed list of changes which happened to the folder.
  • Query the Recycle bin for appointments. They will most likely have come from the default calendar of the user.
like image 163
Henning Krause Avatar answered Nov 08 '22 23:11

Henning Krause