Category Archives: Taxpnomy

Taxonomy sp.js

Utilities.GetTermById = function (TermSetId, TermGuid, success, error) { var context = SP.ClientContext.get_current(); var session = SP.Taxonomy.TaxonomySession.getTaxonomySession(context); var termStore = session.getDefaultSiteCollectionTermStore(); var termSet = termStore.getTermSet(TermSetId); var terms = termSet.get_terms(); context.load(termSet); context.load(terms); context.executeQueryAsync(function () { var termEnumerator = terms.getEnumerator(); var allTerms = … Continue reading

Posted in sharepoint online, Taxpnomy | Leave a comment