Accessing fields created from WebDAV through Outlook Object ModelUserProperties

  • Thread starter Thread starter Jeff Van Boxtel
  • Start date Start date
J

Jeff Van Boxtel

Accessing fields created from WebDAV through Outlook Object Model
UserPropertiesHello,
I have an application that uses WebDAV to create and update fields for
contact items. One of the fields it creates is a custom field. i.e. it
is not defined as part of any namespace. Something like this:

<g:set>
<g:prop>

... real properties here ...

<myproperty>{$this->SyncID}</myproperty>

</g:prop>
</g:set>

The field gets correctly saved and is readable by WebDAV in subsequent
queries and it is even visible from the "User-defined fields for this
folder" page in the contact properties on Outlook 2003. However, when
I try to use ContactItem.UserProperties to access this value it does
not exist and UserProperties.count is 0. If I manually set this field
with the same name from Outlook and save the contact, then my add-in
can read it from UserPropeties but it doesn't work if I set it from
WebDAV. Furthermore, when I use PROPFIND with allprop to compare the
fields from WebDAV on the working and not working contact, they look
identical in xml structure... It is only Outlook that seems to think
they are different.

Is there any way to access this field from my Outlook Addin?
 
AFAIK WQebDAV does not upadte the special blob property where Outlook store
custom prop definitions used by the UserProperties collection.
The only workaround is to use PropertyAccessor in Outlook 2007 or CDO
1.21/Redemption/Extended MAPI.

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