Get-MgSiteOnenoteSectionPage should allow setting the PageLevel value to true #3216
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
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
Docker: N/A
OS: Windows 11
Arch: x64
Other information
No response
The text was updated successfully, but these errors were encountered: