SharePoint Online SPOMod: New-SPOSiteContentTypeColumn
This article describes a function of a custom SharePoint Online module available for download and installation here.
New-SPOSiteContentTypeColumn
Add an existing column to a site content type.
Parameters
ContentTypeID | Mandatory | String. The ID of the content type where to add the column/field. |
ColumnName | Mandatory | String. Internal name or title of the existing site column. |
UpdateChildren | Mandatory | Boolean. Whether or not to update all inheriting/children content types. |
Examples
----- EXAMPLE 1 ------
Add a column to site content type and update all inheriting content types.
New-SPOSiteContentTypeColumn -ContentTypeID 0x010058453F904AB1EB468BA00E0D81952A5B -ColumnName Email3 -UpdateChildren $true
See Also
SPOMod Cmdlets and Resources
Connect-SPOCSOM
Get-SPOList
Get-SPOListColumn
New-SPOSiteContentType
New-SPOListContentType
New-SPOListContentTypeColumn
Wiki: SharePoint Online content types in Powershell: Add
Wiki: SharePoint Online content types in Powershell: Get
Wiki: SharePoint Online content types in Powershell: Edit