i am able to retrieve lists of contacts for specified mailboxes using exchange web services. my issue is that some of the contacts returned have been deleted by the outlook user, and i need to determine which ones. how can i do this?
all the examples i’ve seen online use this method, but never for contacts.
i have tried setting the Traversal property of the ItemView variable to SoftDeleted, but that does not return anything.
below is the pertinent portion of my code:
ItemView itemViewDeleted = new ItemView(100);
itemViewDeleted.Traversal = ItemTraversal.SoftDeleted;
FindItemsResults<Item> deletedItems = svc.FindItems(WellKnownFolderName.Contacts, itemViewDeleted);
You need to check the
WellKnownFolderName.DeletedItemsfolder. That is where my contacts go when I delete them.There are (3) ways to delete a Contact. See TechNet for Exchange terminology reference.
WellKnownFolderName.DeletedItems)WellKnownFolderName.RecoverableItemsDeletions)WellKnownFolderName.RecoverableItemsPurges)