Outlook Contacts

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

I don't know if anyone has experienced issues like the one I've experienced,
but with the advent of Outlook 2003, I have noticed that users have been
creating contact folders all over the place in outlook. Because of this,
I've had to write logic to recurse folders all over the place. Is there
anyway to get a Contacts Folders collection that contains the folders that
contain contacts in them ? or maybe somebody could help me with what they
think is the best way to find a contact item when you really don't know
where the contact object is ?

Dave
 
There's no magic GetContactFolders method, you just have to start at the top
of store and recurse each folder and subfolder, etc. and find all the
contacts folders wherever they've been created.
 
Is there any code samples available that demonstrate the recursing through
the folders and sub folders out on the web anywhere ?
 
Here's a basic one: http://www.outlookcode.com/codedetail.aspx?id=628 You'll want to modify it to check the DefaultItemType property of each folder, so you can determine which are contacts folders.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

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


Dave said:
Is there any code samples available that demonstrate the recursing through
the folders and sub folders out on the web anywhere ?


Ken Slovak - said:
There's no magic GetContactFolders method, you just have to start at the top
of store and recurse each folder and subfolder, etc. and find all the
contacts folders wherever they've been created.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


Dave said:
I don't know if anyone has experienced issues like the one I've
experienced,
but with the advent of Outlook 2003, I have noticed that users have been
creating contact folders all over the place in outlook. Because of this,
I've had to write logic to recurse folders all over the place. Is there
anyway to get a Contacts Folders collection that contains the folders that
contain contacts in them ? or maybe somebody could help me with what they
think is the best way to find a contact item when you really don't know
where the contact object is ?

Dave
 
Back
Top