Unable to get TopNaviagtionBar
or children
#1357
Unanswered
aiimi-cclifton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm trying to get someone's previous project running again that uses this library.
It's connecting through managed identity as per this sample and seemingly successful. However any attempts to get the navigation fail with "Unresolved tokens found in API call"
e.g. (
[domain]
and[sitename]
appearing valid, but redacted)Original Line
Exception:
with "GetNodeById" appearing suspect
Docs example
Following the document basics fails too:
Exception
Experimenting
This only return one node however, so trying:
Exception
Thoughts
Nowhere really to go with this? I've tried updating to latest with no changes. Nothing in existing issues seems to help. Similar ones seem to have alternate queries provided as answers, but these follow the docs.
The only other potential clue is: when inspecting
var nodes = await context.Web.Navigation.GetAsync(n => n.TopNavigationBar)
,Id
andKey
both show'((PnP.Core.Model.SharePoint.Navigation)nodes).Key' threw an exception of type 'PnP.Core.ClientException'
but I'm unsure if it's a red herring and cannot see the details anyway.Beta Was this translation helpful? Give feedback.
All reactions