OneNote icon

OneNote

Work with the Microsoft OneNote (Microsoft Graph) API

Actions2

Page → Get Many

AI-generated

Summary

Retrieves pages from a OneNote section via Microsoft Graph, supporting pagination and scope filtering.

Inputs

  • authentication (required) — Authentication method for Microsoft Graph API. Defaults to OAuth2.
  • scope (required) — Microsoft Graph scope: me, users, or sites. Defaults to me.
  • userId — User ID or UPN. Shown when scope is 'users'. Defaults to empty string.
  • siteId — SharePoint/Site ID. Shown when scope is 'sites'. Defaults to empty string.
  • notebookId (required) — Notebook containing the target section. Select from list or provide ID.
  • sectionId (required) — Section containing the pages to retrieve. Select from list or provide ID. Depends on notebookId, scope, userId, and siteId.
  • returnAll — Whether to return all results or only up to the given limit. Defaults to false.
  • limit — Maximum number of pages to return. Shown when returnAll is false. Defaults to 50. Ignored when returnAll is true.

Output shape

array

Array of page objects retrieved from Microsoft Graph OneNote API. Each item contains the page data from the Graph response.

Examples

Example 1: Get up to 10 pages from a section using OAuth2 auth.

Authentication: OAuth2, Scope: me, Notebook: selected, Section: selected, Return All: false, Limit: 10

Example 2: Get all pages from a section with user scope.

Authentication: OAuth2, Scope: users, User ID: user@contoso.com, Notebook: selected, Section: selected, Return All: true

Discussion