Consider the following scenario:
Sombody shared a calendar with me. I have full access to this calendar. When i delete an Item in the calendar the Folder.BeforeItemMove
Event is fired. So far so good.
I want to Track deletion by check wether the MoveTo Entry id is null
or the Entry id of the Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderDeletedItems)
which works.
Now back to the case where the item is in a shared folder:
- As per documentation the Property olFolderDeletedItems is a no go as parameter for GetSharedDefaultFolders() (Just to be sure i accessed the other folders which were allowed which worked)
- I tried to Iterate over the Stores collection. No calendar there
- I tried to Access the Store Property on the MoveTo folder ->
null
- I tried to get the Store from the Session (to inspect the PR_IPM_WASTEBASKET_ENTRYID) -> Fails
- I CAN get the folder name Problem with this is , it might be renamed and/or localized and i do not want an array with all the deleted folder names floating around if i can't help it
- I tested all of this using either plain OOM or redemptions Folder interface
Any Ideas?
(Tested in Outlook 2016)
Folder.Store
althoughFolder.StoreId
holds the correct EntryID of the Folder – knechtrootrecht Jun 16 '16 at 06:36