Verbessere die Verarbeitung von Taxonomie-Feldwerten, um Mehrwert-Paare korrekt zu trennen und Parsing-Probleme zu vermeiden.

This commit is contained in:
Torsten Brendgen
2026-08-25 09:07:56 +02:00
parent bc3c72f64a
commit e02a38c926
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -2222,7 +2222,10 @@ function Set-SPTaxonomyFieldValue {
$labelGuidPairs += ("{0}|{1}" -f $label, $termGuid)
}
$pairString = $labelGuidPairs -join ";#"
# PopulateFromLabelGuidPairs expects repeated label|Guid pairs separated
# by a plain semicolon. ";#" is SharePoint's serialized field-value
# delimiter and causes multi-value collections to be parsed incorrectly.
$pairString = $labelGuidPairs -join ";"
$taxonomyCollection = $null
try {