GetItemFromID Method

NameSpace.GetItemFromID Method (Outlook)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a Microsoft Outlook item identified by the specified entry ID (if valid).

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.

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.

Show:
© 2016 Microsoft