Create your own custom-themed FREE INTRANET DESIGN IN A MINUTE! Try it Yourself!
Do it Yourself Intranet Design
Logo
Phone
  • About
  • Solutions
    Document Management SystemKnowledge Management SystemEmployee Onboarding SolutionPerformance ManagementProject ManagementProcess MiningIntranet for Small Businesses
  • Services
    IntranetSharePoint
    UIUX Services
    SharePoint Design Services
    Power Platform
    Power PagesPower AutomatePower AppsPower BI (MS Fabric)
    Copilot StudioAI AgentsMicrosoft Teams Apps
  • Templates
  • LookBook
    Modern SharePoint WebpartsBirthday Reminder WebpartWeather Webpart
  • Case studies
    SharePoint Services
    Microsoft Teams
    Microsoft 365
    Microsoft Power Platform
    Power Apps
    Power Automate
    Power Pages
    Azure Functions
  • Blog
    SharePoint Services
    Microsoft Teams
    Microsoft 365
    Microsoft Power Platform
    Power Apps
    Power Automate
    Power Pages
    Azure Functions
    Copilot
    Design
    Power BI (MS Fabric)
    Artificial Intelligence(AI)
    Microsoft Viva
  • Partners
  • Careers
Schedule a call
Schedule a demo
Blog
/
Automating OneNote to SharePoint Migration Using Power Automate’s OneNote Actions
Published Date - 
Eulin Bennet
Eulin Bennet
April 16, 2025

Automating OneNote to SharePoint Migration Using Power Automate’s OneNote Actions

automate-onenote-to-sharepoint-migration-power-automate
Power Automate
SharePoint Services

Migrating OneNote pages to SharePoint as documents can be a tedious task when done manually. In this blog, I will explain a step-by-step process to automate the migration using Power Automate.

Note: Images inside OneNote pages cannot be migrated using this method. A different approach and some manual works are required for that.

Step-by-Step Automated Migration Flow

1. Trigger: Manual Trigger

I have used a manual trigger for this flow, but you can modify it as per your needs. Additionally, I have initialized two variables to store the notebook key and section key.

Manual-trigger

2. Get OneNote Notebooks

I used the "Get recent notebooks" action to fetch the available notebooks and added a condition to select only one notebook, storing its key in a variable. If needed, you can loop through all the notebooks instead.

get-Onenote-notebooks
Save hours of manual work get expert automation support
Talk to an Expert Today
Basic Template5
Basic Template4
Basic Template3
Basic Template2
Basic Template1
Consumer Electronics Template
Healthcare Template 2
Real-Estate Template 1
Real-Estate Template 4
Transport Template 1
Environment sustainability Template 1
Environment sustainability Template 4
Digital Media Template 3
Digital Media Template 4
Digital Media Template 2

3. Get Sections of a Notebook

The "Get section in notebook" action retrieves all sections within a notebook when the notebook key is passed dynamically. After this, I added an "Apply to each" action to store the section key in a variable.

Next, I passed the notebook key and section key into the "Get pages for a specific section" action, which retrieves all pages of the section.

Get-sections-notebook

4. Retrieve Page Content

In the "Get page content" action, I dynamically passed the stored variables (notebook key and section key) along with the page ID retrieved from the previous action. This retrieves the page content in raw HTML format.

Retrieve-page-content
No items found.
Struggling with SharePoint integrations or automation? Our team of SharePoint consultants and PowerApps experts can guide you through every step.
Schedule a 1-on-1 Consultation

5. Convert HTML Page Content to PDF

Since I couldn't convert the HTML file content directly to a PDF, I leveraged OneDrive actions to accomplish this.

  • First, I created a file in the OneDrive root folder, passing the page title dynamically and adding a .doc extension. I also passed the HTML file content.
  • Next, I used the "Convert file" action in OneDrive, passing the file ID and selecting PDF as the output format (other available formats include GLB, HTML, and JPG).
  • After converting the file, I created a PDF file in SharePoint, passing the file name and content from the convert file action. This successfully created a PDF in the designated SharePoint folder.
  • Finally, I deleted the temporary OneDrive file to keep everything clean and organized.
Convert-HTMLpage-content-pdf

Alternative Approach: If needed, we can directly pass the HTML content into the SharePoint Create File action and store the .doc file in SharePoint. This file can only be used for viewing, as it follows an older format.

Editing Note: If you want to edit the document, SharePoint will automatically create a new file in the same location with a .docx extension, allowing you to edit it as a modern Word document.

Conclusion

Automating the migration of OneNote pages to SharePoint using Power Automate simplifies the process and saves time. By leveraging Power Automate’s OneNote and SharePoint actions, we can efficiently convert OneNote pages into PDFs or .doc files while ensuring proper storage in SharePoint. This method reduces manual work and provides flexibility in handling document formats.

Need help implementing this for your organization? Our SharePoint consultants and Power Automate experts can guide your automation journey.

Book a free consultation

faqS

No items found.
Call-icon

Contact us

How can we help you?
Urgent? Book a time

Thank you!

We will get back to you in one business day.
If this is urgent, Please schedule a time
Oops! Something went wrong while submitting the form.

Subscribe to our Newsletter

Linked-In
Subscribe
Back to all blogs
Related blog
Power Automate
SharePoint Services

From Inbox to Intranet: Automate SharePoint News Posts in Real-Time

April 30, 2025

In today’s fast-paced work environment, keeping everyone updated with the latest news and announcements is crucial.

Abirami Thangaraj
Abirami Thangaraj
automate-onenote-to-sharepoint-migration-power-automate
Power Automate
SharePoint Services

Automating OneNote to SharePoint Migration Using Power Automate’s OneNote Actions

April 16, 2025

Migrating OneNote pages to SharePoint as documents can be a tedious task when done manually.

Eulin Bennet
Eulin Bennet
Power Automates New Templates
Power Automate

Streamlining Business Approvals with Power Automate's New Templates

November 13, 2024

In today's fast-paced business environment, efficiency and agility are paramount. Organizations across industries are constantly seeking ways to optimize their workflows,

Venkatesh Maran
Venkatesh Maran
k
Phone
Phone number
+91 98841 89463
+1 737 289 0434
Mail
E-mail
sales@sharepointdesigns.com
Business-Hours
Business-Hours
24/7
Clutch: Microsoft ECM Company 2023Clutch: Microsoft ECM Company 2023

SharePoint Designs is a leading provider of Microsoft ecosystem services – covering apps, intranets, and other digital gateways. We offer out-of-the-box SharePoint development, implementation, migration, and maintenance solutions to build or increase business resilience, operational excellence, and employee productivity. Some of our SharePoint services are Microsoft SharePoint configuration, Microsoft Teams set-up, advanced document management, and streamlined external sharing.

SharePoint Designs’ expertise unlocks the value of Microsoft Power Apps and Power Automate. We help quickly develop and deploy desktop/mobile applications and multi-layered automated workflows. SharePoint Designs also delivers cost-effective Copilot studio services to bridge conversational gaps between employers and customers.

Our suite proficiency makes it effortless to design, manage, and monitor custom-built AI-driven chatbots that are catered to specific organizational use cases. SharePoint Designs is backed by a track record of friction-free integration and smooth deployment for multiple clients across the world. Our flexible pricing plans can meet the unpredictable demands of your business. We also provide 24/7 customer support at global and regional levels.

LookbookModern SharePoint WebpartsBirthday Reminder WebpartWeather Webpartaboutcareers
Privacy PolicyTerms of use
Contact us
Solution
Document ManagementKnowledge ManagementEmployee OnboardingPerformance ManagementProject ManagementIntranet for Small Businesses
servicesIntranetsharePointSharePoint Design Servicesmicrosoft teams AppsPower PagesPower PlatformPower AppsPower automatePower BI (MS Fabric)Copilot StudioAI Agents
case studies
SharePoint Services
Microsoft Teams
Microsoft 365
Microsoft Power Platform
Power Apps
Power Automate
Power Pages
Azure Functions
blogsharePoint ServicesMicrosoft teamsMicrosoft 365Microsoft Power PlatformPower Appspower automatepower pagesazure functions
Lookbook
Modern SharePoint WebpartsBirthday Reminder WebpartWeather Webpart
About
Solution
Document ManagementKnowledge ManagementEmployee OnboardingPerformance ManagementProject ManagementIntranet for Small Businesses
services
IntranetSharePointSharePoint Design ServicesMicrosoft Teams AppsPower PagePower PlatformPower AppsPower AutomateCopilot StudioAI AgentsPower BI (MS Fabric)
case studies
Power Pages
Azure Functions
Power Automate
Power Apps
SharePoint Services
Microsoft Teams
Microsoft 365
Microsoft Power Platform
blog
Copilot
Design
Power BI (MS Fabric)
Artificial Intelligence(AI)
Microsoft Viva
Azure Functions
Power Pages
Power Automate
Power Apps
Microsoft Teams
SharePoint Services
Microsoft 365
Microsoft Power Platform
careers
Link 1Link 2Link 3
CareersPrivacy PolicyTerms of use
CONTACT US
SharePoint Designs © 2025 All Rights Reserved.
facebook-logoLinkedIn-logotwitter-logo
Ask Alfred