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

Status
Not open for further replies.
K

Kiran

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..
 
K

Ken Slovak - [MVP - Outlook]

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.

"Kiran" <kg[at]thoughtworks[dot]com> wrote in message

news:OygIwFN5JHA.1432@TK2MSFTNGP02.phx.gbl...
> 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
> https://forums.slipstick.com
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
G Issues with accessing Outlook Contact Picture with VBA Outlook VBA and Custom Forms 4
RBLampert Accessing Outlook accounts from multiple computers Using Outlook 8
E Accessing shared outlook folder doesn't work since switch to new outlook/excel Outlook VBA and Custom Forms 11
J Accessing calendar items for Resource Mailboxes Outlook VBA and Custom Forms 2
S Outlook [Online - Office365] perfomance is getting affected when accessing the mails using Redemptio Using Outlook 1
J Accessing Hotmail accounts with Outlook 2016 Using Outlook 3
n2b Accessing Plain Text Draft Without Outlook Using Outlook 3
M Accessing ExpiryTime property Outlook VBA and Custom Forms 1
M Accessing BCM with Excel / Running Reports BCM (Business Contact Manager) 1
C Problem accessing events for folder "username" Server Threw Exception Using Outlook 1
P accessing custom task pane with Outlook ActiveInspector Using Outlook 1
mikecox Accessing Outlook on my Win7 desktop from Win8 laptop Using Outlook 1
A "Unable to display the folder" error when accessing Group mailbox Using Outlook 0
Commodore Accessing mail from multiple devices Using Outlook 1
S Programmatically accessing Outlook Calendar data Using Outlook 1
E Accessing User Defined Fields in BCM Database part 2 BCM (Business Contact Manager) 0
E [SOLVED] Accessing User Defined Fields in BCM Database part 1 BCM (Business Contact Manager) 9
R Accessing folder 'Other Contacts' Outlook VBA and Custom Forms 1
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
D Accessing Global Address List details with VBA Outlook VBA and Custom Forms 1
H Accessing a control on a frame in Outlook with VBScript Outlook VBA and Custom Forms 1
K Programmatically accessing Outlook properties Outlook VBA and Custom Forms 3
K assistant accessing from her home computer BCM (Business Contact Manager) 2
A Accessing .pst folder in outlook using VBA Code Outlook VBA and Custom Forms 4
J Outlook closes when accessing History in BCM BCM (Business Contact Manager) 4
B Accessing Outlook 2003 Signature Programmatically using C# Outlook VBA and Custom Forms 6
L Outlook Forms-Accessing Outlook VBA and Custom Forms 1
C Accessing _RecipientControl1 (Assigned To) Outlook VBA and Custom Forms 2
V Outlook custom form - installing and accessing Outlook VBA and Custom Forms 1
A Daily hours of recurring/ multi-day appts, & accessing mult calend Outlook VBA and Custom Forms 2
R New users creating get page cannot be displayed when accessing OWA Exchange Server Administration 16
S CONTACT FIELD PRINT ORDER Outlook VBA and Custom Forms 1
I Button PDF in Outlook Contact custom form Outlook VBA and Custom Forms 1
O Outlook 365 - How to create / copy a new contact from an existing one? Using Outlook 3
N contact list seen in Contact folder but knot in Address book or when 'TO' button is clicked in new email Using Outlook 0
M Disable Contact Card Results when using "Search People" in Outlook Ribbon Using Outlook 7
M Contact suggestion Using Outlook 2
H Custom Outlook Contact Form VBA Outlook VBA and Custom Forms 1
witzker HowTo Change message Class of contact form Outlook VBA and Custom Forms 0
witzker Open Contact missing in Outlook 2019 Using Outlook 2
witzker HowTo start a macro with an Button in OL contact form Outlook VBA and Custom Forms 12
witzker Pls help to change the code for inserting date in Ol contact body Outlook VBA and Custom Forms 5
R Time for another article on contact cards? Using Outlook 0
O Create a custom contact form - questions before messing things up... Outlook VBA and Custom Forms 4
M vCard does not have user-defined fields from my custom contact form (365) Using Outlook 1
C Copy Outlook contact field value to another field Outlook VBA and Custom Forms 1
W Remove specific contacts from contact list Outlook VBA and Custom Forms 3
GregS 2016 Contact List being managed by Outlook.com? Using Outlook 1
F Copy and replace not update contact in another pst Using Outlook 0

Similar threads

Top