PC Review


Reply
Thread Tools Rate Thread

Accessing contact's custom properties in a Outlook 2007 form region

 
 
Kiran
Guest
Posts: n/a
 
      4th Jun 2009
We have added a form region to contact details form where there are some winform controls which we have data bound to contact custom properties. There is a separate app which creates contacts in exchange server (2003) for different mailboxes using Web Dav protocol. While creating the contact it creates these custom properties also. When I read the contact properties using Web dav from exchange server, I get all the values that I initially wrote. But the same in not showing in Outlook from region. We are using ContactItem.ItemProperties which we get from ActiveInspector.CurrentItem to read those custom properties in the form region. I have tried ContactItem.UserProperties also, but even that does not work. Am I missing something here. Thanks in advance..
Submitted using http://www.outlookforums.com
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      4th Jun 2009
No need to post twice.

Just adding a named property to the PS_PUBLIC_STRINGS namespace doesn't make
it an Outlook UserProperty. In addition to adding the property to that
namespace you'd need to hack the undocumented binary blob that Outlook uses
to recognize a UserProperty from a named property in PS_PUBLIC_STRINGS.

The blob can be associated with the item if the UserProperty is only on the
item, or it can be part of a hidden message in the folder with a
MessageClass of IPC.MS.REN.USERFIELDS, in which case the blob is contained
in the property PR_USERFIELDS (0x36E30102), if the UserProperty was added to
the folder fields.

Read your property using the Outlook 2007 PropertyAccessor for the item,
using the PS_PUBLIC_STRINGS namespace as part of the DASL property tag you
supply to PropertyAccessor for any of the property set/get methods.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Kiran" <kg[at]thoughtworks[dot]com> wrote in message
news:(E-Mail Removed)...
> We have added a form region to contact details form where there are some
> winform controls which we have data bound to contact custom properties.
> There is a separate app which creates contacts in exchange server (2003)
> for different mailboxes using Web Dav protocol. While creating the contact
> it creates these custom properties also. When I read the contact
> properties using Web dav from exchange server, I get all the values that I
> initially wrote. But the same in not showing in Outlook from region. We
> are using ContactItem.ItemProperties which we get from
> ActiveInspector.CurrentItem to read those custom properties in the form
> region. I have tried ContactItem.UserProperties also, but even that does
> not work. Am I missing something here. Thanks in advance.. Submitted using
> http://www.outlookforums.com


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem while reading custom property in Outlook 2007 form region Kiran Microsoft Outlook Program Addins 0 4th Jun 2009 11:44 AM
Outlook 2007 Custom Contact Form - Updating Entries xSallyx Microsoft Outlook Contacts 12 29th Apr 2008 01:33 AM
Outlook 2007 RSS Form region to display articles' web pages? Iliyan Georgiev Microsoft Outlook Discussion 1 30th Jul 2007 01:52 AM
OL 2007 - Set custom form region as default Fidget Brain Microsoft Outlook Form Programming 8 6th Jul 2006 03:36 PM
FIELD PROPERTIES IN CUSTOM CONTACT FORM =?Utf-8?B?QUxFWEdBTA==?= Microsoft Outlook Contacts 1 8th Dec 2005 04:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:15 PM.