Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 840 Bytes

AddSPOFieldToContentType.md

File metadata and controls

23 lines (20 loc) · 840 Bytes

#Add-SPOFieldToContentType Adds an existing site column to a content type ##Syntax

Add-SPOFieldToContentType -Field <FieldPipeBind> -ContentType <ContentTypePipeBind> [-Required [<SwitchParameter>]] [-Hidden [<SwitchParameter>]] [-Web <WebPipeBind>]

##Parameters

Parameter Type Required Description
ContentType ContentTypePipeBind True
Field FieldPipeBind True
Hidden SwitchParameter False
Required SwitchParameter False
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Add-SPOFieldToContentType -Field "Project_Name" -ContentType "Project Document"

This will add an existing site column with an internal name of "Project_Name" to a content type called "Project Document"