A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Problem while reading custom property in Outlook 2007 form region



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 4th 09, 11:44 AM posted to microsoft.public.outlook.program_addins
Kiran[_2_]
external usenet poster
 
Posts: 3
Default Problem while reading custom property in Outlook 2007 form region

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
ns0utlookmessageclassIPM.Contact/ns0utlookmessageclass
ns1:givenNameJohn/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
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing contact's custom properties in a Outlook 2007 form region Kiran[_2_] Add-ins for Outlook 1 June 4th 09 03:12 PM
Invoke custom Form Region from a click event Ajay AKG Outlook - Using Forms 4 February 25th 09 04:34 PM
Accessing another custom form and the associated custom property melon Outlook - Using Forms 1 December 1st 08 02:41 PM
Reading a Custom Appointment Item's Conflict Property in Item_Write Function [email protected] Outlook - Using Forms 2 August 9th 06 06:53 PM
OL 2007 - Set custom form region as default Fidget Brain Outlook - Using Forms 8 July 6th 06 03:36 PM


All times are GMT +1. The time now is 09:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.