logo
search
Others

How to Sort OneNote Pages in Power Automate or Microsoft Graph API

Aamir Naveed AkramAamir Naveed Akram Oct 19, 2026 869 views

Question details

The user wants to know if it is possible to sort or assign a custom order to OneNote pages using OneNote Online, Power Automate, or the Microsoft Graph API.

How to Sort OneNote Pages in Power Automate or Microsoft Graph API
Product
Microsoft OneNote
Device & OS
not provided
Scenario
Automating the organization and sorting of OneNote pages via scripts or cloud flows.
Observed behavior
Users are unable to find a supported method to sort OneNote pages by title or assign a custom order through the online interface, Power Automate, or Microsoft Graph API.
Before you start

Keep in mind that while the OneNote desktop application allows for manual page sorting, these changes are local to your device and will not automatically synchronize to OneNote Online or be manageable via cloud APIs.

Solution 1Recommended

Manage Page Order Using the OneNote Desktop Application

Understand the limitations of OneNote Online and utilize the desktop application's manual sorting features as the primary workaround.

Currently, the ability to sort OneNote pages is restricted to the desktop version of the application. This sorting feature is implemented locally on your specific device, meaning it is not synchronized across the cloud.

Consequently, OneNote Online, Power Automate, and the Microsoft Graph API do not provide any equivalent endpoints or features to sort pages. Attempting to force an order using HTML metadata or CSS styles in your API requests is unsupported and will be ignored by the system.

1
Open the OneNote desktop app

Launch the OneNote desktop application on your Windows or Mac device, as this is the only environment where page sorting is natively supported.

2
Manually sort pages

Navigate to the section you wish to organize. Click and drag the page tabs located in the page navigation pane to manually arrange them into your preferred order.

3
Avoid unsupported API formatting

When creating pages via Power Automate or Graph API, do not attempt to inject CSS styles or HTML metadata to manipulate the page order by title, as this is an unsupported practice.

Manage Page Order Using the OneNote Desktop Application
Local Synchronization Limitation: Because desktop sorting is local, viewing the same notebook on a different device or through the OneNote Online web interface will revert the pages to their default, unsorted view.
Free Microsoft Office alternative

Experience Seamless Document Management with WPS Office

While automated cloud sorting in OneNote might be restricted by API limitations, you can switch to WPS Office for a lightweight, highly compatible alternative to manage your documents. WPS Office provides excellent file organization, intuitive word processing, and built-in PDF tools without the frustration of complex API restrictions.

  1. 1. Download the installer: Visit the official WPS Office website and click the download button to get the free installation package for your operating system.
  2. 2. Install the application: Run the downloaded installer file and follow the on-screen prompts to complete the setup process on your computer.
  3. 3. Start organizing documents: Launch WPS Writer or WPS PDF to instantly open, edit, and organize your files within a clean and highly compatible environment.
Highly compatible with Microsoft Office file formats (Word, Excel, PowerPoint).Lightweight and fast, requiring fewer system resources than heavy notebook apps.Built-in robust document organization with a convenient tabbed viewing interface.Free to download with a familiar, easy-to-use interface for quick transitions.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use Microsoft Graph API to sort OneNote pages by creation date?

No, the Microsoft Graph API currently does not support sorting OneNote pages by any criteria, including creation date, modification date, or title.

Why do my OneNote pages look sorted on my computer but not on the web?

The sorting feature in OneNote is implemented locally on the desktop application. Because it is a device-specific feature, your custom page order is not synchronized to OneNote Online.

Is there a workaround in Power Automate to order new pages?

There is no built-in action in Power Automate to reorder pages. New pages created via automation are typically appended to the section. Trying to force an order using HTML or CSS in the page content is not supported.