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.
Say I have a termset with a nested list of terms and I execute:
I only get the top-level terms. I'd like to be able to include the child terms as well.
--includeChildTermsRemarks
The list of terms retrieved is a nested object, with arrays of child terms in every term object.
text,csvandmdoutput modes, the command output should contain all terms, children as well as parents.text,csvandmdoutput 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.jsonoutput mode, the command output should keep the nested structure that the API returns.