Skip to content

Enhancement: add ability to recursively load Taxonomy Terms from a termset. #4209

@martinlingstuyl

Description

@martinlingstuyl

Say I have a termset with a nested list of terms and I execute:

m365 spo term list --termSetName "Some termset" --termGroupName "Some group"

I only get the top-level terms. I'd like to be able to include the child terms as well.

Option Description
--includeChildTerms If specified, child terms are loaded as well.

Remarks

The list of terms retrieved is a nested object, with arrays of child terms in every term object.

  • In text, csv and md output modes, the command output should contain all terms, children as well as parents.
  • In text, csv and md output modes, each term contains the ID of the parent term. If the term doesn't have a parent, the value of the property is empty.
  • In json output mode, the command output should keep the nested structure that the API returns.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions