Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1001 Bytes

File metadata and controls

34 lines (26 loc) · 1001 Bytes

#Set-SPOTaxonomyFieldValue Sets a taxonomy term value in a listitem field ##Syntax

Set-SPOTaxonomyFieldValue -Label <String> -TermId <GuidPipeBind> -ListItem <ListItem> -InternalFieldName <String>
Set-SPOTaxonomyFieldValue -TermPath <String> -ListItem <ListItem> -InternalFieldName <String>

##Parameters

Parameter Type Required Description
InternalFieldName String True The internal name of the field
Label String True The Label value of the term
ListItem ListItem True The list item to set the field value to
TermId GuidPipeBind True The Id of the Term
TermPath String True A path in the form of GROUPLABEL
##Examples

###Example 1

PS:> Set-SPOTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -Label 'HR'

###Example 2

PS:> Set-SPOTaxonomyFieldValue -ListItem $item -InternalFieldName 'Department' -TermPath 'CORPORATE|DEPARTMENTS|HR'