E
Eric
Does anyone know of a list of how Outlook Object Model (OOM) OLE
properties map to MAPI properties.
For example, in OOM I would use:
ContactItem.BusinessAddressStreet = "123 W Main St."
In MAPI I would think this might be:
PR_STREET_ADDRESS = "123 W Main St."
However, this isn't correct. In fact, when I set PR_STREET_ADDRESS
alone, I don't even see the new value I set anywhere (unless I use
Outlook Spy to view PR_STREET_ADDRESS directly).
When I set "ContactItem.BusinessAddressStreet" using the OOM, or if I
edit the Business Street Address manually in Outlook, I notice at
least 2 or 3 MAPI properties are changed. I could just set all of
them in my code, but my overall goal is to keep these fields
synchronized with another database, which is very complex if I have to
synchronize 1 field in my database to 10 fields in Outlook (what if on
the next sync all 10 fields in Outlook have different values, which
one would I use then?).
properties map to MAPI properties.
For example, in OOM I would use:
ContactItem.BusinessAddressStreet = "123 W Main St."
In MAPI I would think this might be:
PR_STREET_ADDRESS = "123 W Main St."
However, this isn't correct. In fact, when I set PR_STREET_ADDRESS
alone, I don't even see the new value I set anywhere (unless I use
Outlook Spy to view PR_STREET_ADDRESS directly).
When I set "ContactItem.BusinessAddressStreet" using the OOM, or if I
edit the Business Street Address manually in Outlook, I notice at
least 2 or 3 MAPI properties are changed. I could just set all of
them in my code, but my overall goal is to keep these fields
synchronized with another database, which is very complex if I have to
synchronize 1 field in my database to 10 fields in Outlook (what if on
the next sync all 10 fields in Outlook have different values, which
one would I use then?).