Contacts folder not exposing AddressEntries

C

ClownLounge

I have a problem with a contacts folder not exposing its AddressEntries
to a VB6 COM Add-In (Outlook: 9.0.0.2711, CDO: 1.2.1, Win2k).

The Add-In sends messages/documents to email/fax/SMS etc. For this to
happen, the user first selects specific contact items in a contacts
folder and then calls the AddIn. The add-in then maps the selected
contacts to its corresponding CDO AddressEntries (using an
AddressEntries filter and then checking the contact item ID versus the
AddressEntry ID).

However, in some cases, the contacts folder does not expose its
contacts as AddressEntries, which causes the above matching algorithm
to fail. I have checked that the contacts folders' properties that the
folder is shown as an email address book of the same name.

Here's a code snippet:

Dim list As MAPI.AddressList
Dim aeList As MAPI.AddressEntries
Set list = cdoSession.AddressLists("Contacts")
Set aeList = list.AddressEntries
mLog.log " CDO address entries " & aeList.Count

This code is already in production since about 2 years and worked fine
(aeList.Count > 0). However, recently, some users complained that they
can't select contacts anylonger when using the AddIn. I checked the
logs and aeList.Count is 0.

Since on most other machines it works I believe it must be an
Outlook/Exchange configuration, which I can't figure out.

If anyone has an idea or had similar problems, please reply.
Thanks
-Stefan
 

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