What are we going to build?
This flow creates a daily OneNote page within a OneNote Section(In my Case: „Daily Notes“ with the title of today’s date and the day of the week with the content you want in the page.


- Create a Flow at http://www.flow.microsoft.com and give it a name.
- Choose „recurrence“ as a trigger. In our Case we will trigger the flow every day at 7:00

3. Initialize a variable as array for each weekday

Create a „Compose“ Action and use the Function:
utcNow()

4. Create another „Compose“ Action with following expression to get a „number“ for the week. This will help „calculate“ the Weekday for the OneNote title.
dayOfWeek(outputs('Get_UTC_Date_and_Time_now'))

5. Another LAST „Compose“ for getting the weekday as an output:
variables('Days of the Week')[sub(outputs('Get_Day_of_the_Week_(Number)'), 1)]
5. new action: „Create Page in OneNote Section“ using the OneNote Connector.

the content inside the action is now classical HTML – https://html-online.com/editor/ This site is a HTML Editor.
If you want to use my Input and the Title with todays date and the weekday – be aware to insert the output of get day of the week:
<html>
<head>
<title>@{formatDateTime(utcNow(), ‚dd-MM-yyyy‘)
}, @{outputs(‚Get_Day_of_the_week__(Name)‘)}</title>
</head>
<body>
<p> </p>
<p style=“margin: 0in; font-family: ‚Segoe UI‘; font-size: 12.0pt;“><span style=“font-weight: bold;“>Goals / Agenda</span></p>
<ul style=“direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;“ type=“disc“>
<li style=“margin-top: 0; margin-bottom: 0; vertical-align: middle;“> </li>
</ul>P
<p style=“margin: 0in; font-family: ‚Segoe UI‘; font-size: 12.0pt;“><span style=“font-weight: bold;“>Discussion Notes</span></p>
<ul style=“direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;“ type=“disc“>
<li style=“margin-top: 0; margin-bottom: 0; vertical-align: middle;“> </li>
</ul>
<p style=“margin: 0in; font-family: ‚Segoe UI‘; font-size: 12.0pt;“><span style=“font-weight: bold;“>Action items</span></p>
<p> </p>

use following function to get todays date:
formatDateTime(utcNow(), 'dd-MM-yyyy')

Feedback & what’s next?
Let me know what you think 😊 Let’s connect ➡️https://linktr.ee/rahmanuenal