Skip to content
Discussion options

You must be logged in to vote

Not through the PnP Core model. INavigation only implements IDataModelGet/IDataModelLoad (no IDataModelUpdate) and UseShared has no public setter (INavigation.cs). I couldn't find a confirmed REST route either (one report says it's read-only over REST); PnP Framework and CLI for Microsoft 365 both set it via CSOM.

If you use PnP.Framework, PnPCoreSdk.Instance.GetClientContextAsync(context) gives you a CSOM ClientContext from your PnP Core context. To stay in PnP Core, you can post the CSOM request that CLI for Microsoft 365 sends yourself and let the context's auth provider add the token, which is how PnP Core sends its own CSOM calls. ExecuteRequestAsync can't carry it because it expects /…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gszdev
Comment options

Answer selected by gszdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants