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>
<grop>
... real properties here ...
<myproperty>{$this->SyncID}</myproperty>
</grop>
</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?
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>
<grop>
... real properties here ...
<myproperty>{$this->SyncID}</myproperty>
</grop>
</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?