Problem while reading custom property in Outlook 2007 form region

K

Kiran

We have an app which creates new contacts in exchange server 2003 using WebDav for Exchange for different users. While creating these contacts it creates some custom properties.
In outlook 2007 addin we have added a form region to the contact details form where these properties are bound to winform controls. We are using ActiveInspector.ContactItem.ItemProperties["CustomPropertyName "] to read the values set to the custom properties. We are not using any outlook custom form.
The problem is that we are not able to read the values of these custom properties from ContactItem, but using outlook spy we are able to see the value of the custom property.
When we created User defined fields we were able to read the values using the same method.

The WebDav request to create the property and user defined field are below:

For Property:
<?xml version="1.0" encoding="utf-8"?>
<D:propertyupdate xmlns:D="DAV:" xmlns:ns0="http://schemas.microsoft.com/exchange/" xmlns:ns1="urn:schemas:contacts:" xmlns:ns2="http://schemas.microsoft.com/mapi/" xmlns:ns3=" http://schemas.microsoft.com/mapi/string/{00020329-0000-0000 -C000-000000000046}/">
<D:set>
<D:prop>
<ns0:eek:utlookmessageclass>IPM.Contact</ns0:eek:utlookmessageclass >
<ns1:givenName>John</ns1:givenName>
<ns:CustomProperty1 xmlns:ns=" http://schemas.microsoft.com/mapi/string/{00020329-0000-0000 -C000-000000000046}/" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" b:dt="boolean">0</ns:CustomProperty1>
</D:prop>
</D:set>
</D:propertyupdate>


For user defined field:
<?xml version="1.0" encoding="utf-8"?>
<D:propertyupdate xmlns:D="DAV:" xmlns:ns0=" http://schemas.microsoft.com/mapi/string/{00020329-0000-0000 -C000-000000000046}/">
<D:set>
<D:prop>
<ns:UserDefinedField1 xmlns:ns=" http://schemas.microsoft.com/mapi/string/{00020329-0000-0000 -C000-000000000046}/"
xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" b:dt="boolean">1</ns:UserDefinedField1>
</D:prop>
</D:set>
</D:propertyupdate>


We want to use custom property. So is there any thing we are missing while creating the custom property or while reading in outlook..
Submitted using http://www.outlookforums.com
 

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