I'd like to retrieve a contact with a known EntryID in a specific folder from outlook/exchange using Redemption.
The following code calls GetMessageFromID on an RDOSession object. I only want contacts from the standard Contacts folder, so I use the second argument to limit the search space.
RDOFolder folder = Session.GetDefaultFolder(rdoDefaultFolders.olFolderContacts);
RDOContactItem i = Session.GetMessageFromID(syncRow.SyncId, folder.EntryID, null) as RDOContactItem;
Whenever I do this redemption throws a COM exception: Error in IMAPISession.OpenMsgStore: MAPI_E_INVALID_ENTRYID
. What am I doing wrong?