Findind an Outlook Item

O

Odd Spot

What is the most efficient means of finding an item if you do not know
what folder the item is located in. Is there an global identifier for
Outlook Items. (example: I want to find and email that is located in
the folder Business -> Projects -> Client A, but my program does not
know what folder the email is in)

P.S. I am using C# to code, so any references to that object model
would be great.

Thanks
 
S

Sue Mosher [MVP-Outlook]

If you know the EntryID, you can use Namespace.GetItemFromID.

Is the folder in a mailbox, .pst file, or Public Folders?
 
O

Odd Spot

Right now I am assuming the folder is in mailbox, but I would like to
have the flexibility of locating a message that exists in any of those
options if possible.
What is the EntryID? Is that an attribute on the MailItem?

Jared
 
S

Sue Mosher [MVP-Outlook]

What is the EntryID? Is that an attribute on the MailItem?

Yes, as you'll see if you look at the object browser.
Right now I am assuming the folder is in mailbox, but I would like to
have the flexibility of locating a message that exists in any of those
options if possible.

Take a look at Items.Find, Items.Restrict, and Application.AdvancedSearch
methods

Also note: The newsgroup interface you are using apparently does not quote
earlier messages in the thread, making your latest message so short on
detail that you risk not getting the answer you're looking for. Please take
the time to quote the original message.
 
O

Odd Spot

Great, Thanks for the help Sue. I'll try and figure out the quoting
issue.

Jared
 

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

Top