# Doclib Content Types

Adds named content types to a document library, and optionally removes any content types not in the provided list.

Filename pattern: filename must contain DoclibContentType (case-insensitive).
Example: 20240115 DoclibContentType update.xlsx

# Columns

Name Required Description
Url / DocLibUrl 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. Applies to all document libraries for the matter.
ClientCode No Client code used together with MatterCode to identify the matter.
ContentTypes / ContentType Yes Semicolon- or comma-separated list of content type display names to add to the library.
RemoveIfNotSpecified / Remove No Boolean. true removes any content types from the library that are not listed in ContentTypes. Defaults to false.

Either Url or MatterCode must be provided. ContentTypes is always required.

# Behavior

Content type names are looked up by display name in the SharePoint library. If RemoveIfNotSpecified is true, any content types already on the library that are not in the provided list are removed.

Last Updated: 4/20/2026, 12:54:05 PM