I have
a managed metadata field that I need to retrieve the value.
Below
is the code I used to get the value from Managed Metadata column
var objVals = (object[])listItem["Product"];
foreach (object val in objVals)
{
var temp = val.ToString();
temp = temp.Remove(temp.IndexOf('|'));
Product += temp + ";";
}
Product = Product.TrimEnd(';');
No comments:
Post a Comment