I have been creating a load of site columns with powershell from a .csv file. I am now trying to create new taxonomy or metadata field:
$spField = $web.Fields.CreateNewField($fieldType, $siteColumn.DisplayName)
# updat properties related ot MMS
# Update the properties of the new field.
$spField.SspId = $termSet.TermStore.ID
$spField.TermSetId = $termSet.Id
$spField.AnchorId = $termID
but I also want to set a default value (not just the anchor for a range of terms)
$defaultTerm = $terms | Where-Object {$_.Name -eq $siteColumn.Default}
Now I am stuck because I need update $spField.DefaultValue
with a format it accepts e.g.
45;#Customer Document|60d5d501-3d38-4842-80f0-c897a12b7e34
How can I do this from a .csv
file?