Skip to content

Commit

Permalink
Added sample on using Includes to fetch the child terms
Browse files Browse the repository at this point in the history
  • Loading branch information
KoenZomers authored Feb 9, 2025
1 parent 5a8d3d7 commit e21d548
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions documentation/Get-PnPTermSet.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Returns a taxonomy term set

```powershell
Get-PnPTermSet [-Identity <TaxonomyTermSetPipeBind>] [-TermGroup] <TaxonomyTermGroupPipeBind>
[-TermStore <TaxonomyTermStorePipeBind>] [-Connection <PnPConnection>] [-Includes <String[]>]
[-TermStore <TaxonomyTermStorePipeBind>] [-Connection <PnPConnection>] [-Includes <String[]>]
```

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

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

### EXAMPLE 4
```powershell
Get-PnPTermSet -Identity "Departments" -TermGroup "Corporate -Include "Terms"
```

Returns the termset with the given name from the termgroup called "Corporate" including the terms below it from the site collection termstore

## PARAMETERS

### -Connection
Expand Down

0 comments on commit e21d548

Please sign in to comment.