GetItemFromID Method [Outlook 2007 Developer Reference]

Switch View :
ScriptFree
NameSpace.GetItemFromID Method
Returns a Microsoft Outlook item identified by the specified entry ID (if valid).

Syntax

expression.GetItemFromID(EntryIDItem, EntryIDStore)

expression   A variable that represents a NameSpace object.

Parameters

NameRequired/OptionalData TypeDescription
EntryIDItemRequiredString The EntryID of the item.
EntryIDStoreOptionalVariantThe StoreID for the folder.
EntryIDStore
usually must be provided when retrieving an item based on its MAPI IDs.

Return Value
An Object value that represents the specified Outlook item.

Remarks

This method is used for ease of transition between MAPI and OLE/Messaging applications and Outlook.

For more information about Entry IDs, see the EntryID property.