0

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!

0
    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();            
        }
  • Yes, that's the case! Even though I was more interested in the GetDescription(). The syntax would be term.GetDescription(); – nbc Nov 27 '17 at 16:30

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.