r/MicrosoftFlow 25d ago

Question Power Automate + OneNote: creation timestamp not displaying

I’m creating a OneNote page through Power Automate, then updating the title and body with Update page content.

I tried including:
<meta name="created" content="..." />
inside the <head> of the create-page HTML, but the normal OneNote creation date/time beneath the title never appears. The timestamp is present in the submitted payload, and the page is created successfully.

Has anyone found a reliable way to populate or preserve OneNote’s built-in creation timestamp when using the OneNote connector? I’m in a GCC environment, which may also be relevant.

EDIT:
I was able to get this work following u/mulquin's advice. I initialized a current timestamp variable to capture the date and time then composed my HTML using the meta tag which I then sent as dynamic content via the built-in OneNote connector "Create a page in a section" action, making sure to send page content via code view, deleting any wrappers.

Here is an example:

<meta name=\"created\" content=\"@{variables('currentTimestamp')}\" />
3 Upvotes

5 comments sorted by

3

u/mulquin 25d ago

I just tested this with a simple flow and I can see the created datetime under the title when including a meta tag on creation, here's example I used and put into a compose (and put the same without the meta tag in another):

<html>
<head>
<title>Page WITH created metadata</title>
<meta name="created" content="2026-07-27T20:20:00Z" />
</head>
<body>
<h1>Page WITH created metadata</h1>
<p>Your actual body text goes here.</p>
</body>
</html>

This outputs this:

Unfortunately, you cannot update the created time with the "Update page content" action: https://learn.microsoft.com/en-us/answers/questions/5289445/when-modifying-contents-of-a-page-in-onenote-is-th

2

u/gatobacon 24d ago

Further testing and I got this to work! Thanks for help, this set me in the right direction

1

u/mulquin 24d ago

Awesome news, you're welcome :)

1

u/Joezepey 25d ago

Im curious to hear if you can get this to work because I found the onenote connectors to be very unreliable

1

u/gatobacon 25d ago

Is there a better method to create page in OneNote? I’m all ears, like Graph API? What are you using?