SharePoint.BuildingBlocks.ContentTypes
Building blocks to manage content types.
Ensure ContentType
Ensures the content type on the given site.
Input Fields
Name | Required? | Description |
---|---|---|
Description | optional | The description of the parent content type. |
Document Template | optional | The file path to the document template used for a new list item that has been assigned the content type. Or the name of an existing document template. |
Group | optional | The name of the group to which this content type should be added. If the group does not exist yet it will be created. |
Name | required | The name of the content type. |
Parent Content Type | optional | The name of the parent content type. |
Update Children | optional | If set to true, the children of this content type will be updated. |
Url | optional | The url of the subsite or site collection. The url can also be specified with other context fields named 'Website' or 'CaseRootUrl'. |
Ensure ContentType Field
Ensures an existing list or site field to an existing content type.
Input Fields
Name | Required? | Description |
---|---|---|
Field | required | The title or internal name of the field within the specified content type. |
List | optional | The GUID or title of the list. |
Name | required | The name of the content type. |
Required | optional | Specifies whether the field specified is required or not. |
Update Children | optional | Specifies if the children of this content type need to be updated. |
Url | optional | The url of the subsite or site collection. The url can also be specified with other context fields named 'Website' or 'CaseRootUrl'. |
Ensure ContentType To List
Adds an existing content type to an existing list. Multiple content types can be ensured by giving multiple names separated by a semicolon.
Input Fields
Name | Required? | Description |
---|---|---|
List | optional | The GUID or title of the list. |
Name | required | The name of the content type. |
Read Only | optional | Specifies whether the content type will be attached to the list as read only. |
Synchronise From Content Type Hub | optional | Synchronise the content type(s) from the content type hub to the current SharePoint site. The url in the profile is used as the content type hub url, this can be the admin tenant url. If you are working with a lot of libraries with content types on the site, consider using the building block 'Synchronise ContentType From Hub' to synchronise all content types at once. Synchronising the content types for each library will have a severe performance impact! |
Url | optional | The url of the subsite or site collection. The url can also be specified with other context fields named 'Website' or 'CaseRootUrl'. |
Remove ContentType From List
Removes a content type from an existing list. Only content types which are configured as not read only can be removed from a list. Multiple content types can be removed by giving multiple names separated by a semicolon.
Input Fields
Name | Required? | Description |
---|---|---|
List | optional | The GUID or title of the list. |
Name | required | The name of the content type. |
Url | optional | The url of the subsite or site collection. The url can also be specified with other context fields named 'Website' or 'CaseRootUrl'. |
Synchronise ContentType From Hub
Synchronise the given content type(s) from the content type hub to the SharePoint site. The url in the profile is used as the content type hub url, this can be the admin tenant url. Use this building block when working with a lot of libraries to synchronise the used content types first and then add all the content types to the libraries using the 'Ensure ContentType To List' building block with the property 'Synchronise From Content Type Hub' unchecked.
Input Fields
Name | Required? | Description |
---|---|---|
Name | required | The name of the content type. |
Url | optional | The url of the subsite or site collection. The url can also be specified with other context fields named 'Website' or 'CaseRootUrl'. |