Thanks for this guide, but to be able to retrieve the page content, I use the folowing code:
Dropdown2.items:
'OneNote(Business)'.GetNotebooks()
Dropdown3.items:
'OneNote(Business)'.GetSectionsInNotebook(Dropdown2.Selected.Key).value
dropdown4.items:
'OneNote(Business)'.GetPagesInSection(Dropdown2.Selected.Key,Dropdown3.Selected.pagesUrl).value
On a RichTextEditor2.default I set this:
'OneNote(Business)'.GetPageContent(Dropdown2.Selected.Key,Dropdown3.Selected.id,Dropdown3.Selected.id)
The error I get is:
{
"duration": 48.9,
"size": 307,
"status": 400,
"headers": {
"Content-Length": 307,
"Content-Type": "application/json",
"x-ms-client-request-id": "ae21e304-aec3-49b6-b363-1055a51043bb"
},
"body": {
"error": {
"code": 400,
"message": "The section id is invalid. If a custom value was entered, please try selecting from the supplied values.",
"source": "europe-002.azure-apim.net",
"path": "choose[3]\\when[1]",
"clientRequestId": "ae21e304-aec3-49b6-b363-1055a51043bb"
}
}
}
I can use the section id for the retrieval of the page id's, so I guess the key should be ok?
What am I doing wrong?
Any help would be appreciated.