I have two lists that are using the same Managed Metadata column. I am attempting to copy this column when I create a new entry in one of the lists. My code looks like this:
SPListItem li = site.RootWeb.Lists["UploadList"].AddItem(); li["Title"] = workflowProperties.Item["Title"]; li["TaxKeyword"] = (TaxonomyFieldValueCollection)workflowProperties.Item["TaxKeyword"]; li.Update();
For some reason when I look at the new list item that is created it never has a value for the "TaxKeyword" column. I have tried not casting it to
TaxonomyFieldValueCollection and it still does not work... Any suggestions on how to do this?