Forum Discussion
Lene_Kottal
Oct 19, 2025Copper Contributor
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...
- Oct 19, 2025
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>
nbkhwjm
Jan 31, 2026Copper Contributor
No matter what i do, the UI **ALWAYS** adds a P element around it.. even when im in code mode. I have verified that the P Element is in fact in the output.
<!DOCTYPE html>
<html>
<head>
<title>@{variables('FileName')}</title>
</head>
<body>
@{variables('EventList')}
</body>
</html>
- I create a Compose with the above code.
- Add a "Create Page in Section"
- Select "Code Mode" in "Page Content" add the output of the Compose.
- Save
- Go Back in to the same "Create Page in Section", this is what is there...
<p class="editor-paragraph">@{outputs('Compose_File_Header')}</p>
This being the outermost element seems to prevent the page title from being recognized.
Thoughts?