This section shows the available API objects and provides more information on executing SQL to OneNote APIs.
- The add-in models OneNote entities like users and groups as relational views, entities like notebooks, sections, section groups and pages as relational tables, allowing you to write SQL to query OneNote data.
- Stored procedures allow you to execute operations to OneNote, including retrieving the access token and keeping it refreshed in OAuth 2.0.
- Live connectivity to these objects means any changes to your OneNote account are immediately reflected when using the add-in.
Views describes the available views. Views are statically defined to model Users and Groups.
Tables describes the available tables. Tables are statically defined to model Notebooks, SectionGroups, Sections and Pages.
Stored Procedures are function-like interfaces to OneNote. They can be used to search, create, and modify information in OneNote.
Collaborative Query Processing
The add-in offloads as much of the SELECT statement processing as possible to OneNote and then processes the rest of the query in memory. API limitations and requirements are also documented in this section.
See SupportEnhancedSQL for more information on how the add-in circumvents API limitations with in-memory client-side processing.