Problems retrieving mobile number from Outlook XP using redemption

S

Sander Kooij

Hello,

Currently I am working on an outlook add-in for outlook. In this addin
I have to resolve the mobile telephone number of a contact from
Outlook XP. When I try to resolve the mobile telephone number using
the CdoPR_MOBILE_TELEPHONE_NUMBER tag, a blank field is returned. The
problem does not occur when I try to retrieve the mobile address from
a contact in the global address list, It only occurs when I try to get
the address from an outlook contact.
To test if this was an Outlook XP-only problem I tried to run the
addin in combination with Outlook 2003. This works fine.

Has anyone ever had similar problems with using standard fields in
Outlook XP?
Or do I need to use a different tag to retrieve this field when using
Outlook XP?

Here a snippet from my code:
Set sAddressEntry = Utils.GetAddressEntryFromID(sRecipient.EntryID)
MobilePhone = sAddressEntry.Fields(mapi.CdoPR_MOBILE_TELEPHONE_NUMBER)

Thanks in advance,

- Sander Kooij
 
D

Dmitry Streblechenko

AFAIK when an Outlook contact is used through the AB interface
(AddressEntry) that field is simply not exposed. You'd have a better luck
accessing the item as ContactItem rather than AddressEntry.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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