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.
Thread starter Similar threads 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
M Mails get deleted accessing a user mailbox with a different user Using Outlook 2
N Shared Calendar in Public folder hangs when accessing from Outlook 2010 Exchange Server Administration 2
X Accessing a shared email folder - How? Exchange Server Administration 1
H Accessing a backup Using Outlook 3
J Problems accessing console of Exchange 2010 on Windows Server 2008 R2 Please help me Exchange Server Administration 4
S Accessing emails in a closed account Using Outlook 1
E Users get login prompt in Outlook 2007 when accessing Exchange Server 2007 Using Outlook 2
H accessing shared calendar in outlook 2007 Using Outlook 3
A BCM-Problem Accessing Database Using Outlook 1
K Outlook 2010 now freezes while accessing Gmail Using Outlook 3
S Accessing items in incoming emails. Using Outlook 1
N Outlook 7 crashing when accessing Tasks Using Outlook 2
D 403 Error in IIS when accessing a non-SSL page Using Outlook 2
R accessing owa externally and having a cas array internally Exchange Server Administration 9
L Not receiving all incoming mail when 2 computers are accessing 1 email address Using Outlook 1
O Accessing OST file which was created through Windows Outlook Connector Using Outlook 2
J Restriction on accessing hyperlinks contained in email. Using Outlook 2
C Accessing web addresses included in emails Using Outlook 1
J Accessing email from remote device. Using Outlook 2
T Outlook closes unexpectedly upon accessing another user's calendar Using Outlook 1
R Program accessing .PST files Using Outlook 2
G Outlook 2010 freezes when accessing shared calendars Using Outlook 1
B Accessing outlook e-mail on a crashed desk top. Using Outlook 1
H Accessing data in Outlook\archive.pst Using Outlook 2
S Accessing Calender information post migration from Exchange 2003 to Exchange 2020 using Outlook2003 client. Exchange Server Administration 4
P Accessing Microsoft outlook on a different computer Using Outlook 1
S Quick access button for accessing a Template (.oft file) in v.2010 or 2007? Using Outlook 5
Similar threads


















































Top