Tag Info

Hot answers tagged

1

There is not out of the box way to do this. You should use either a workflow or an event receiver. The idea is to handle ItemAdded event or Start workflow on item create or Update. Inside you should remove permission of the item if Term has particular value. Once permission inheritance is broken, you can give permission only to respective users. Note - ...


1

You can make use of properties Terms or TermsCount. This property provides the list of immediate Terms. So in your case you can use following logic if(term.Terms == null || term.Terms.Count == 0) //means this term has no childern if(term.TermsCount == 0) //means this term has no childern


1

This is happening because you haven't explicitly requested for Parent Id. Try including that in the load statement 'Include(IsRoot, Labels, TermsCount, CustomSortOrder, Id, IsAvailableForTagging, Name, PathOfTerm, Parent, Parent.Id, TermSet.Name)' You should check whether the current term is root or not as follows if(currentTerm.get_isRoot() == false) { ...



Only top voted, non community-wiki answers of a minimum length are eligible