Propagating User Properties to Recipients

T

Tadwick

I programmatically add a user property to an appointment before I send it to
a recipient. This is done via a Windows Form (using VSTO) launched from an
Outlook tool bar.

appointment.UserProperties.Add("ExamplePropertyName",
Outlook.OlUserPropertyType.olText, true, Outlook.OlUserPropertyType.olText);
appointment.UserProperties["ExamplePropertyName"].Value =
"ExamplePropertyValue";
appointment.Save();

However, the user property is not propagated to the recipient. I am
wondering if it is related to this KB article:

http://support.microsoft.com/kb/907985

But adding custom properties programmatically is listed as a best practice
and I am not using Outlook forms at all.

Do I have to use the AllowNamedProps registry key as well?
 
D

Dmitry Streblechenko

The problem with appointments is that when you send a meeting
request/updatee, Outlook creates a meetign request item 9separate from teh
appointment), populates the properties that it knows about, and then sends
it. The original appointments stays in teh Calendar folder.
Since it knowns nothing about your custome properties, it does not copy them
to the mettign request/update.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top