Skip to content

Commit b5c3fe4

Browse files
Added example to create default labels for new term
Example on how to create multilingual term default labels for newly created taxonomy term.
1 parent 3cf0783 commit b5c3fe4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sharepoint/sharepoint-ps/sharepoint-pnp/New-PnPTerm.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ New-PnPTerm -TermSet "Departments" -TermGroup "Corporate" -Name "Finance"
3434

3535
Creates a new taxonomy term named "Finance" in the termset Departments which is located in the "Corporate" termgroup
3636

37+
### ------------------EXAMPLE 2------------------
38+
```powershell
39+
$context = Get-PnPContext
40+
$term = New-PnPTerm -Name "Finance" -TermSet "Departments" -TermGroup "Corporate" -LCID 1033
41+
$createLabel = $term.CreateLabel("Finanzwesen", 1031, $true)
42+
$context.Load($term)
43+
Invoke-PnPQuery
44+
```
45+
46+
This example creates a new English taxonomy term named "Finance" in the termset "Departments" which is located in the "Corporate" termgroup and adds a German default label for the newly created English term by means of the **[CreateLabel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.taxonomy.term.createlabel)** method.
47+
3748
## PARAMETERS
3849

3950
### -CustomProperties

0 commit comments

Comments
 (0)