Accessing fields created from WebDAV through Outlook Object ModelUserProperties

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?
 
D

Dmitry Streblechenko

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
 

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