Skip to main content
1 of 2
Lori
  • 143
  • 7

spfx Global Term Store without using get

Just wondering whats the best way to get the name of the Global Term store without hard coding it?

I have this at the moment

var termStoreName = "Taxonomy_xxxxxxxxxxxxxxxxx";
const store: ITermStore = await taxonomy.termStores.getByName(termStoreName);
Lori
  • 143
  • 7