Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Share point 2013 how to Get term guid by term name in server side object model

$
0
0

I have a term set having different terms.and each term having sub terms.

 Term term = termSet.Terms.Where(t => t.Name == "ABC").FirstOrDefault();

taxonomyFieldValue.TermGuid = term.Id.ToString();
taxonomyFieldValue.Label = term.Name;

I used the above code to get the term guid.But it has fetched only one level.if the term exist in sub level its failed.

Please provide the code to get term guid if its exist in any sub sub level.



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>