From 2d8597e9f07f910b223826441d20d6e1791937ee Mon Sep 17 00:00:00 2001 From: a1mery <7100077+a1mery@users.noreply.github.com> Date: Fri, 12 Apr 2024 10:27:26 +0200 Subject: [PATCH] replace ParentTerm by ParentTermId --- documentation/Add-PnPTermToTerm.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/documentation/Add-PnPTermToTerm.md b/documentation/Add-PnPTermToTerm.md index bc866d4e0..83cb964b8 100644 --- a/documentation/Add-PnPTermToTerm.md +++ b/documentation/Add-PnPTermToTerm.md @@ -15,7 +15,7 @@ Adds a new term to an existing term. ## SYNTAX ```powershell -Add-PnPTermToTerm -ParentTerm -Name [-Id ] [-Lcid ] +Add-PnPTermToTerm -ParentTermId -Name [-Id ] [-Lcid ] [-LocalCustomProperties ] [-TermStore ] [-Connection ] @@ -29,7 +29,7 @@ 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. @@ -37,18 +37,18 @@ Creates a new taxonomy child term named "SubTerm" in the specified term by id 2d ### 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