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"?>
<Dropertyupdate xmlns="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>
<Drop>
<ns0utlookmessageclass>IPM.Contact</ns0utlookmessageclass >
<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>
</Drop>
</D:set>
</Dropertyupdate>
For user defined field:
<?xml version="1.0" encoding="utf-8"?>
<Dropertyupdate xmlns="DAV:" xmlns:ns0=" http://schemas.microsoft.com/mapi/string/{00020329-0000-0000 -C000-000000000046}/">
<D:set>
<Drop>
<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>
</Drop>
</D:set>
</Dropertyupdate>
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
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"?>
<Dropertyupdate xmlns="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>
<Drop>
<ns0utlookmessageclass>IPM.Contact</ns0utlookmessageclass >
<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>
</Drop>
</D:set>
</Dropertyupdate>
For user defined field:
<?xml version="1.0" encoding="utf-8"?>
<Dropertyupdate xmlns="DAV:" xmlns:ns0=" http://schemas.microsoft.com/mapi/string/{00020329-0000-0000 -C000-000000000046}/">
<D:set>
<Drop>
<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>
</Drop>
</D:set>
</Dropertyupdate>
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