Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to Add-PnPNavigationNode #2736

Merged
merged 5 commits into from
Jan 30, 2023
Merged

Changes to Add-PnPNavigationNode #2736

merged 5 commits into from
Jan 30, 2023

Conversation

KoenZomers
Copy link
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #2708

What is in this Pull Request ?

  • Fixed issue with Add-PnPNavigationNode not always showing the new navigation node without requiring a manual edit and save of the menu first
  • Added -AudienceIds option to Add-PnPNavitationNode to allow setting the audience for a navigation node

@gautamdsheth
Copy link
Collaborator

@KoenZomers - I would have approved this PR yesterday but then I attended the PnP community call where Bert mentioned that he added Audience targeting support in PnP Core SDK 😊

Can we maybe use that ?

Check this link:

https://pnp.github.io/pnpcore/using-the-sdk/audience-targeting-intro.html#in-navigation

If you want, I can write a separate PR for that.

@KoenZomers
Copy link
Collaborator Author

Interesting. He seems to create the JSON himself and post that to the new endpoints. Would make things more efficient, but needs testing if it works well. Wish I would have known this before. Would have saves me a few hours of getting it to work this way :)

@gautamdsheth gautamdsheth merged commit 16047d1 into pnp:dev Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] AudienceIds not working after running Add-PnPNavigationNode
2 participants