Skip to main content
added 30 characters in body
Source Link
Mike
  • 12.2k
  • 8
  • 42
  • 64

The solution obove does not work for me but I get another solution:

TaxonomyField managedMetadataField = item.Fields[fieldGuid] as TaxonomyField; TaxonomyFieldValueCollection managedMetadataFieldValue = (TaxonomyFieldValueCollection)managedMetadataField.GetFieldValue("");

managedMetadataField.SetFieldValue(item, managedMetadataFieldValue);

TaxonomyField managedMetadataField = item.Fields[fieldGuid] as TaxonomyField;
TaxonomyFieldValueCollection managedMetadataFieldValue =
               (TaxonomyFieldValueCollection)managedMetadataField.GetFieldValue("");
managedMetadataField.SetFieldValue(item, managedMetadataFieldValue);

The solution obove does not work for me but I get another solution:

TaxonomyField managedMetadataField = item.Fields[fieldGuid] as TaxonomyField; TaxonomyFieldValueCollection managedMetadataFieldValue = (TaxonomyFieldValueCollection)managedMetadataField.GetFieldValue("");

managedMetadataField.SetFieldValue(item, managedMetadataFieldValue);

The solution obove does not work for me but I get another solution:

TaxonomyField managedMetadataField = item.Fields[fieldGuid] as TaxonomyField;
TaxonomyFieldValueCollection managedMetadataFieldValue =
               (TaxonomyFieldValueCollection)managedMetadataField.GetFieldValue("");
managedMetadataField.SetFieldValue(item, managedMetadataFieldValue);
Source Link

The solution obove does not work for me but I get another solution:

TaxonomyField managedMetadataField = item.Fields[fieldGuid] as TaxonomyField; TaxonomyFieldValueCollection managedMetadataFieldValue = (TaxonomyFieldValueCollection)managedMetadataField.GetFieldValue("");

managedMetadataField.SetFieldValue(item, managedMetadataFieldValue);