jeudi 5 mars 2015

Getting all levels of terms from termSet.GetAllTerms()



The code below will return all the terms in term store:



$terms = $termSet.GetAllTerms()
$Region = $terms | ?{$_.Name –eq “Region”}


But in my case i have terms in termSet up to 3 levels. The $Region term is at level 3. Will this method $termSet.GetAllTerms() return all the terms upto 3 levels? Will it return 3rd level term $Region? or we need to write some more code to get to the 3rd level of term?








0 commentaires:

Enregistrer un commentaire