Skip to content

Commit

Permalink
replace ParentTerm by ParentTermId (#3890)
Browse files Browse the repository at this point in the history
Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com>
  • Loading branch information
a1mery and gautamdsheth authored Apr 17, 2024
1 parent 98dd0bc commit 1386236
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 1386236

Please sign in to comment.