Question

I want to be able to manage the GetDescription() and SetDescription() of the Taxonomy Term(as a managed metadata). In order to get the value of the Description, not of the Label of the Taxonomy Term.

enter image description here How should I manage these functions?

Any suggestion would be very much appreciated.

Thank you in advance!

Was it helpful?

Solution

    using (SPSite site = new SPSite("URL of site"))
        {
            TaxonomySession taxonomySession = new TaxonomySession(site);
            TermStore termStore = taxonomySession.TermStores["MMMD Service"];
            Group group = termStore.Groups["Term Group"];               
            TermSet termSet = group.TermSets["Term Set"];
            Term term = termSet.Terms["term"];
            term.SetDescription("Test", 1033);           
            termStore.CommitAll();            
        }
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top