Cmdlets for OneNote

Build 21.0.7930

Data Model


This section shows the available API objects and provides more information on executing SQL to OneNote APIs.

Key Features

  • The cmdlet 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 cmdlet.


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

Stored Procedures are function-like interfaces to OneNote. They can be used to search, create, and modify information in OneNote.

Collaborative Query Processing

The cmdlet 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 cmdlet circumvents API limitations with in-memory client-side processing.

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930