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 Calendar Printing Assistant 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
K trying to sync my samsung galaxy to my outlook 2010 calender. it says execution privilege prevents me from accessing outlook Using Outlook 1
P time delay between accessing Outlook file folders, up 20+ second delay Using Outlook 1
S Accessing source information Using Outlook 1
J After Window update of 12/15/2010, outlook 2007 gives error (0x800CCC18) when accessing gmail using Using Outlook 6
S Outlook 2010 freezes and not responding when accessing, moving or deleting files Using Outlook 2
N Problems accessing network files via OWA Using Outlook 5
J Problems accessing console of Exchange 2010 on Windows Server 2008 R2 Please help me Exchange Server Administration 4
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
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
A Sending contact vcards sends older version instead of updated version Using Outlook 4

Similar threads

Top