Exchange Store Schema vs. MAPI PropTag

J

Jim Carpenter

What is the relationship between the exchange store schema and MAPI
proptags? For example, "urn:schemas:mailheader:subject" would seem to
map to PR_SUBJECT. Is there a unique proptag for each schema element?
Is there any documentation that describes such a mapping?

Here is what I am trying to do:

Dim cItem As Outlook.ContactItem
Dim safeContact As Redemption.SafeContactItem
safeContact.Item = cItem
Dim urnStr As String = "urn:schemas:contacts:cn"
' Prop tag should be PR_DISPLAY_NAME (0x3001001E)
Dim propTag As Integer = GetPropTagFromSchema(urnStr)
Dim commonName As String = safeContact.get_Fields(propTag)

The method GetPropTagFromSchema should return a valid prop tag value
for the schema field name. Does something like this exist?

Thanks,

Jim Carpenter
SRI International
 
S

Sue Mosher [MVP]

There's no such documentation that I know of. I have, however, documented
the Exchange schema names for most of the visible Outlook properties at
http://www.slipstick.com/files/schema.zip. You could then use the
information at http://www.cdolive.com/cdo10.htm to match up the Outlook
properties with the MAPI property tags.

FYI, there is a newsgroup specifically for general Outlook programming
issues "down the hall" at microsoft.public.outlook.program_vba
 
Top