# Document Update Content Type Email

Updates the content type and email metadata of .msg and .eml files in a document library, by processing rows from an Excel file. The email content type name is taken from the DMS configuration list.

Filename pattern: filename must contain DocumentUpdateContentTypeEmail (case-insensitive).
Example: 20240115 DocumentUpdateContentTypeEmail repair.xlsx

# Columns

Name Required Description
DoclibUrl / Url Conditional Server-relative URL of the document library. Required when MatterCode is not provided.
MatterCode Conditional Matter code used to resolve document libraries from the matter list. Required when Url is not provided. Processes all document libraries for the matter.
ClientCode No Client code used together with MatterCode to identify the matter.

Either Url or MatterCode must be provided. No content type name is provided in the Excel file — the email content type is determined automatically from the DMS configuration list.

# Behavior

For each .msg and .eml file in the library, the handler:

  1. Ensures the DMS email content type is present on the library.
  2. Downloads the file and extracts email metadata from its content.
  3. Updates the file's ContentTypeId and email metadata fields using UpdateSystem (preserving modified date).
Last Updated: 4/20/2026, 12:54:05 PM