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

Get-MgSiteOnenoteSectionPage should allow setting the PageLevel value to true #3216

Open
edmobe opened this issue Mar 7, 2025 · 0 comments
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@edmobe
Copy link

edmobe commented Mar 7, 2025

Describe the bug

I am trying to get the page level and order from Get-MgSiteOnenoteSectionPage, but both values are empty by default. I tried performing the query in the Microsoft Graph Explorer, and turns out I need to do https://graph.microsoft.com/v1.0/sites/<site>/onenote/sections/<section>/pages?$select=level,order,title&pagelevel=true as suggested in the public documentation https://learn.microsoft.com/en-us/graph/onenote-get-content#example.

Expected behavior

There should be a way to set this value to true. From what I've tried, this flag is inaccessible from the cmdlet.

How to reproduce

Running Get-MgSiteOnenoteSectionPage and checking the returned values for "level" and "order".

SDK Version

2.12.0

Latest version known to work for scenario above?

No response

Known Workarounds

Using the Microsoft Graph explorer, another scripting language, or manually injecting the HTTP request.

Debug output

Not possible due to confidentiality.

Configuration

Name Value
PSVersion 5.1.26100.2161
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.2161
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Docker: N/A
OS: Windows 11
Arch: x64

Other information

No response

@edmobe edmobe added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

1 participant