GetItemFromID method on a public folder in the namespace


Robert Squire

I have a public folder called "Public Items".
It's path is \\Public Folders\All Public Folders\Public Items\

I store everytype of outlook item in it an when they are stored I record
(among other properties) their entryId in a database. Later I want to be
able to retrieve an item from the folder using the entryId:
and then display it.

However I get an run-time error and each time I try it the error number is
different (very large negative numbers with a hex number in parenthesis).
I've searched msdn and done a fair amount of googling with now luck. I also
tried using the find method on the items collection of the folder but you
cannot use find with entryId as a parameter.

Any thoughts?

Thanks in advance.

Sue Mosher [MVP-Outlook]

You need to include the StoreID as well as the EntryID when you're accessing an item in folders other than the default store. Get the StoreID from any public folder's MAPIFolder object.

Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question