Skip to content

Commit e21d548

Browse files
authored
Added sample on using Includes to fetch the child terms
1 parent 5a8d3d7 commit e21d548

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

documentation/Get-PnPTermSet.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Returns a taxonomy term set
1616

1717
```powershell
1818
Get-PnPTermSet [-Identity <TaxonomyTermSetPipeBind>] [-TermGroup] <TaxonomyTermGroupPipeBind>
19-
[-TermStore <TaxonomyTermStorePipeBind>] [-Connection <PnPConnection>] [-Includes <String[]>]
20-
19+
[-TermStore <TaxonomyTermStorePipeBind>] [-Connection <PnPConnection>] [-Includes <String[]>]
2120
```
2221

2322
## DESCRIPTION
@@ -46,6 +45,13 @@ Get-PnPTermSet -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermGroup "Corpor
4645

4746
Returns the termset with the given id from the termgroup called "Corporate" from the site collection termstore
4847

48+
### EXAMPLE 4
49+
```powershell
50+
Get-PnPTermSet -Identity "Departments" -TermGroup "Corporate -Include "Terms"
51+
```
52+
53+
Returns the termset with the given name from the termgroup called "Corporate" including the terms below it from the site collection termstore
54+
4955
## PARAMETERS
5056

5157
### -Connection

0 commit comments

Comments
 (0)