Add a definition for a new user-defined field

Applies to: Outlook 2013 | Outlook 2016

When you add a user-defined field to a Microsoft Outlook item, you add a field definition to the corresponding PropertyDefinition stream structure. Use the following procedure to add a new field definition to a PropertyDefinition stream structure.

To add a definition for a new user-defined field

  1. Copy the existing field definitions of the PropertyDefinition stream structure to a new field definitions array.

  2. If any existing field definitions are in the PropDefV1 format, convert them to the PropDefV2 format. For more information about field definition formats, see PropertyDefinition Stream Structure and FieldDefinition Stream Structure.

  3. Create a definition of the new user-defined field in the PropDefV2 format and add it to the array.

  4. Set the Version element of the PropertyDefinition stream structure as 0x0103, if the Version element has not been set to that value.

  5. Increment the FieldDefinitionCount element by 1.

  6. Store the array as the value of the FieldDefinitions element.

See also