1

I have been successful in creating terms in the term store using CSOM code. But I have been not been able to set URL for those terms.

Small code snippet -

TermSet termset = group.TermSets.GetByName(termSet); \\group is a TermGroup       
Term newTerm = termset.CreateTerm(term, 1033, Guid.NewGuid());

I want to add URL for this newTerm. Please suggest some approach.

Thanks.

0
 newTerm.IsNavigationTermSet = true;
  // specify target page for all terms in this term set 
newTerm.TargetUrlForChildTerms.Value = "~site/Pages/Topics/Topic.aspx";

Hope this code will help you

  • Thanks for the response. But the issue is I don't have this property 'isNavigationTermSet' available. I think this is available for NavigationTermSet and not for TermSet. – Amit Sep 17 '14 at 16:56
  • 1
    This article may help you amolmeshe.blogspot.in/2014/03/… – Anuja Sep 25 '14 at 4:48

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.