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
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=trueas 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