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..
 
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
M Accessing ALL Outlook contact fields Outlook VBA and Custom Forms 3
G Issues with accessing Outlook Contact Picture with VBA Outlook VBA and Custom Forms 4
S Problem Accessing .MSG Property 'ImageNaturalHeight' Tag '0x80010003' Outlook VBA and Custom Forms 1
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
G Outlook 2021 Add Picture to Custom Contact Form Outlook VBA and Custom Forms 2
AndyZ Contact Custom Form Tiny Text Outlook VBA and Custom Forms 3
A How to reduce size of custom contact form? Outlook VBA and Custom Forms 3
S Custom Contact card - need help creating one Outlook VBA and Custom Forms 1
U Outlook 2021 not showing contact cards in Searches Using Outlook 1
Witzker Outlook 2019 Macro to seach in all contact Folders for marked Email Adress Outlook VBA and Custom Forms 1
Witzker How to get the button Karte ( map) in custom contact form Outlook VBA and Custom Forms 2
G Adding a contact to a specific folder Using Outlook 0
B Linking contact to an Appointment Using Outlook 1
Witzker Outlook 2019 How to get a Photo in a User Defined Contact form Outlook VBA and Custom Forms 2
Witzker Outlook 2019 Macro to send an Email Template from User Defined Contact Form Outlook VBA and Custom Forms 0
jehan2256 "History" button in Business Contact Manager Using Outlook 1
Witzker Outlook 2019 Edit contact from email does not open the user defined contactform Using Outlook 3
Horsepower Contact phone numbers randomly change Using Outlook 0
Witzker Set Cursor & Focus from any field to the body of a user Contact form in OL 2019 Outlook VBA and Custom Forms 1
Witzker Place cursor at opening, a user defined OL contact form Outlook VBA and Custom Forms 3

Similar threads

Back
Top