pnp / PnP-PowerShell

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

[BUG] Get-PnPNavigationNode only returns root level #2798

Open HeKr09 opened 4 years ago

HeKr09 commented 4 years ago

Reporting an Issue or Missing Feature

I want to add navigation nodes as sub links. Unfortunatly the Get-PnPNavigationNode -Location TopNavigationBar only returns the root entries. I am not able to add nodes to sub links (at third level) because the cmdlet only returns first level. I am not able to get the second level by this one: Get-PnPNavigationNode -Location TopNavigationBar | where { $_.Url.EndsWith("/sites/Anything") } There may be no hits because the link I need to find is on second level.

Is this as designed?

Expected behavior

I expect to get all navigation nodes no matter which level.

Actual behavior

I only get first level. Yes, I am able to use the id or to load by Get-PnPContext but this should not be an option I think?

Steps to reproduce behavior

Get-PnPNavigationNode -Location TopNavigationBar | where { $_.Url.EndsWith("/sites/Anything") }

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

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

3.21.2005.2

How did you install the PnP-PowerShell Cmdlets?