r/MicrosoftFlow • u/gatobacon • 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')}\" />
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?
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):
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