Forum Discussion

Lene_Kottal's avatar
Lene_Kottal
Copper Contributor
Oct 19, 2025
Solved

Add a page title to a OneNote page using Power Automate

Hello,

I have set up a flow in Power Automate to create a new page in OneNote. It extracts information from an email, including the information that I want to be the title of the new page in OneNote. The flow creates the new page in the correct notebook and section, but the page is untitled. My flow correctly composes the title in a Compose action named PageTitle.

The parameters for the action "Create page in a section" only include the following

  • Notebook Key
  • Notebook section
  • Page Content

AI suggested that I add the page title to Page Content inside either an html h1 tag. I tried that. It does not turn the text inside the tag into the title of the page. It simply formats the text inside the contents of the OneNote page. I also tried using the html title tag. That didn't work either, and the PageTitle wasn't even output into the contents of the OneNote page, so it was just empty.

I would appreciate suggestions for how to do this.

I cannot see either a OneNote tag or Power Automate tag for this discussion. If I am posting my question in the wrong discussion place, please direct me to the right place.

Thanks.

  • How about using <title> tag in the Page Content with proper HTML structure.


    To set the page title, you need to include a <title> tag inside a complete HTML document structure in the Page Content field:

    <!DOCTYPE html>
    <html>
      <head>
        <title>@{outputs('PageTitle')}</title>
      </head>
      <body>
        <h1>@{outputs('PageTitle')}</h1>
        <p>Your other content goes here...</p>
      </body>
    </html>

     

2 Replies

  • How about using <title> tag in the Page Content with proper HTML structure.


    To set the page title, you need to include a <title> tag inside a complete HTML document structure in the Page Content field:

    <!DOCTYPE html>
    <html>
      <head>
        <title>@{outputs('PageTitle')}</title>
      </head>
      <body>
        <h1>@{outputs('PageTitle')}</h1>
        <p>Your other content goes here...</p>
      </body>
    </html>

     

Resources