NameSpace.GetItemFromID method (Outlook)

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

Name Required/Optional Data type Description
EntryIDItem Required String The EntryID of the item.
EntryIDStore Optional Variant The 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.

See also

NameSpace Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.