0

I have a listitem with a managed metadata column. the column has two values (two terms) . now i need to remove one from it. how to do that programmatically (server side object model). i have given the screenshot for reference.

enter image description here

when my code executes, i have to remove chap1 term.

0

I have posted the answer in my blog. http://sharepointplays.blogspot.in/2016/11/remove-term-from-managed-metadata.html

TaxonomyFieldValueCollection tfc = oListItem["TodoColumn"] as TaxonomyFieldValueCollection; tfc.Remove(tfc.Where(i => i.Label.Equals("Lesson 1")).FirstOrDefault()); oListItem["TodoColumn"] = tfc;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.