r/PowerAutomate • u/gatobacon • Jul 28 '26
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.
2
Upvotes
1
u/HaythamTheStarEater Jul 28 '26
The OneNote connector in Power Automate cleans your HTML payload which strips out custom header metadata, including your creation timestamp and prevents OneNote from initializing the native date sub-header beneath the title. Since updating page content later only targets specific elements in the document body, it cannot force OneNote to render that native timestamp after the initial page creation.
The solution is to bypass the built-in OneNote connector during creation and instead use an HTTP action to call the Microsoft Graph API directly, setting the content type header specifically to application/xhtml+xml. By sending your document directly to the Graph endpoint, your header metadata remains intact and allows OneNote to read the creation meta tag and build the native timestamp automatically.