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?
[ ] PnP PowerShell for SharePoint 2013
[ ] PnP PowerShell for SharePoint 2016
[ ] PnP PowerShell for SharePoint 2019
[x] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
3.21.2005.2
How did you install the PnP-PowerShell Cmdlets?
[ ] MSI Installed downloaded from GitHub
[x] Installed through the PowerShell Gallery with Install-Module
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?