Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add-PnPTermToTerm documentation - replace ParentTerm by ParentTermId #3890

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions documentation/Add-PnPTermToTerm.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Adds a new term to an existing term.
## SYNTAX

```powershell
Add-PnPTermToTerm -ParentTerm <Guid|Term> -Name <String> [-Id <Guid>] [-Lcid <Int32>]
Add-PnPTermToTerm -ParentTermId <Guid> -Name <String> [-Id <Guid>] [-Lcid <Int32>]
[-LocalCustomProperties <Hashtable>]
[-TermStore <Guid>]
[-Connection <PnPConnection>]
Expand All @@ -29,26 +29,26 @@ This cmdlet adds a new taxonomy term as a child term to an existing term.

### EXAMPLE 1
```powershell
Add-PnPTermToTerm -ParentTerm 2d1f298b-804a-4a05-96dc-29b667adec62 -Name SubTerm -CustomProperties @{"Department"="Marketing"}
Add-PnPTermToTerm -ParentTermId 2d1f298b-804a-4a05-96dc-29b667adec62 -Name SubTerm -CustomProperties @{"Department"="Marketing"}
```

Creates a new taxonomy child term named "SubTerm" in the specified term by id 2d1f298b-804a-4a05-96dc-29b667adec62.

### EXAMPLE 2
```powershell
$parentTerm = Get-PnPTerm -Name Marketing -TermSet Departments -TermGroup Corporate
Add-PnPTermToTerm -ParentTerm $parentTerm -Name "Conference Team"
Add-PnPTermToTerm -ParentTermId $parentTerm.Id -Name "Conference Team"
```

Creates a new taxonomy child term named "Conference Team" in the specified term called Marketing which is located in the Departments term set.

## PARAMETERS

### -ParentTerm
The name of the term.
### -ParentTermId
The Id of the parent term.

```yaml
Type: Guid or Term Object
Type: Guid
Parameter Sets: (All)

Required: True
Expand Down
Loading