Pnpjs: How to get a term by name

Created on 1 Dec 2020  路  1Comment  路  Source: pnp/pnpjs

Category

  • [ ] Enhancement
  • [ ] Bug
  • [x] Question
  • [ ] Documentation gap/issue

Version

Please specify what version of the library you are using: [ 2.0.9 ]

Please specify what version(s) of SharePoint you are targeting: [Online]

Question

Is there a way to get a term by name or what is the best approach to fullfill this ?

code answered question

Most helpful comment

In version 2, the ability to access the Taxonomy is still in beta and the only features available are what we have documented here: https://pnp.github.io/pnpjs/sp/taxonomy/

I think you're only option is to get the terms and then loop through them until you find the one with the name you want.

>All comments

In version 2, the ability to access the Taxonomy is still in beta and the only features available are what we have documented here: https://pnp.github.io/pnpjs/sp/taxonomy/

I think you're only option is to get the terms and then loop through them until you find the one with the name you want.

Was this page helpful?
0 / 5 - 0 ratings