pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 662 forks source link

Get-PnPTerm unable to retrieve labels #3017

Open ferrarirosso opened 3 years ago

ferrarirosso commented 3 years ago

I am trying to retrieve the labels for a specific term as described in the docs, example 5 https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-pnpterm?view=sharepoint-ps

Actual behavior

$term = Get-PnPTerm -Identity "Projects" -TermSet "Channels" -TermGroup "Intranet" This works but when I execute this $term = Get-PnPTerm -Identity "Projects" -TermSet "Channels" -TermGroup "Intranet" -Include Labels I get this Get-PnPTerm : A positional parameter cannot be found that accepts argument 'Labels'. At line:1 char:9

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

SharePointPnPPowerShellOnline 3.26.2010.0

How did you install the PnP-PowerShell Cmdlets?

sympmarc commented 3 years ago

This looks to be a documentation error. -Includes Labels seems to work. Note the "s" on -Includes.

ferrarirosso commented 3 years ago

This looks to be a documentation error. -Includes Labels seems to work. Note the "s" on -Includes.

Tried it, doesn't work $term = Get-PnPTerm -Identity "Projects" -TermSet "Channels" -TermGroup "Intranet" -Includes Labels
Get-PnPTerm : Specified argument was out of the range of valid values. Parameter name: index At line:1 char:9