3
votes

Is it possible to display outlook appointment extended properties in a custom outlook form or maybe an outlook addin? I have set the extended properties against the appointments using EWS. An example of how I have set them is below:

private static readonly ExtendedPropertyDefinition extendedPropertyEventID = new ExtendedPropertyDefinition(
                                                                                    new Guid("{00020329-0000-0000-C000-000000000046}"),
                                                                                    "EventID",
                                                                                    MapiPropertyType.String);


appointment.SetExtendedProperty(extendedPropertyEventID, "123456");
2

2 Answers

1
votes

The way to do it if you are writing an outlook addin and If you are using the Outlook Object Model, all custom properties are available in the item's UserProperties collection (e.g. AppointmentItem.UserProperties).

Best Practices for Getting and Setting Properties http://msdn.microsoft.com/en-us/library/ff869735(v=office.15).aspx

0
votes

If you want to do this just in Outlook you can modify the current view. Here is the procedure for an English Outlook 2007:

  1. Go to View/Current View/All appointments:

View_Current View_All appointments

  1. Right click on a column header, choose Customize current view, then Fields, then in the top left drop down User-defined field in folder:

New User-Defined Field

  1. Add the names and types of your User-defined field. Make sure to pick Integer not Number for Integer fields.

Edited to add: Note that in that drop down from point 2 you can also choose a form. Maybe that helps you if you want to do it through a form. I have no experience with this.