I have a spfx extension that requires me to retrieve terms from a TermSet that are not available for selection. I'm trying to use the terms for custom footer navigation links.
I'm currently using PNP JS to get the terms that work as expected when "Available for tagging" is enabled. Below is the code
const termstore: ITermStore = taxonomy.getDefaultSiteCollectionTermStore (); const termGroup: ITermGroup = wait for termstore.getSiteCollectionGroup (). get (); const terms: (pnpITermData & pnpITerm) = wait for termGroup.termSets.getByName ("
") .terms.get ();
If the "Available for tagging" option is disabled in the term set, no results are returned.
How do I get the termset available for marking? Is there a parameter I could pass to include this termset as well? Every help is appreciated