Quick question: Does anyone know of a way to change the order of the nodes in let's say the QuickLaunch nav when adding them via Add-PnPNavigationNode? I only know of the
Thanks a lot!
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Appreciate this is a few months old but I had a similar problem today. When adding a new node with CSOM, using the NavigationNodeCreationInformation class, you can specify the previous node. If you need to reorder existing nodes programmatically, I think you would have to delete and recreate them (haven't found a way to reorder existing nodes).
To set the order of node in Quick launch, we can only use CSOM to update the relevant node via AsLastNode property.
Reference: NavigationNode class