GetItemFromID

  • Thread starter Thread starter werner meyer
  • Start date Start date
W

werner meyer

hello,
i locate the calender item with
outlook.GetNamespace("MAPI").GetItemFromID("123")

this works fine
but how can i check
is this item deleted or not?
 
Do you mean "deleted" as in "resides in the Deleted Items folder"?

set Namespace = outlook.GetNamespace("MAPI")
set DelItems = Namespace.GetDefaultFolder(olFolderDeletedItems)
set Item = Namespace.GetItemFromID("123")
BoolDeleted = (Item.Parent.EntryID = DelItems.EntryID)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top