Creates a new page with a category index at the top where each category is a hyperlink to sections below. Categories are comma delimited lists of strings (i.e "A,B,C,D,E", "Monday, Tuesday, Wednesday", "⭐,⚡,❓", etc.).
An index page can serve as a repository for notes that need to be filed by category.
Renames the current OneNote section per DialogBox user input.
// Get the current section
$Section = GetCurrentSection()
// Create a dialog box
$DialogBox = DialogBox_Create("Rename Section", "Set the new section name:")
// Add a text box to the dialog box
DialogBox_AddTextBox($DialogBox, "New Section Name:", "txtSectionName", "", true)
// Show the dialog box
DialogBox_Show($DialogBox)
// Get the value entered by the user
$NewName = $DialogBox.controls["txtSectionName"]
// Rename the section
$Section.name = $NewName
--code generated using Microsoft Copilot, slight human editing by Michael Steger