than you so much for your post! With your help I was able to create pages within a section if the section already exists, however, I am still struggling with creating new pages within a brand new section that was just created. Using The pages URL did not work for me. I can't figure out what I am doing wrong.
The purposes of my flow is to run automatically on daily basis. What I am trying to accomplish is on daily basis grab all my calendar events for the day and create a page for each calendar event. Right now, I'm just trying to create section for each month and then a page for each day under that month section. However, ideally I would like to have Section Group for the month, then Sub Sections for each week for that month and pages for each day under week section. I'm not sure if this is possible as I don't see the option to create Section Group in Power Automate.
Here are the screenshots of my flow. If you don't mind taking a look, I'd really appreciate help identifying what I might be doing wrong.
1. Getting calendar events
2. Initializing variables for OneNote. Setting SectionName value to today's year-month
3. Getting all the sections from OneNote and placing then in the array. Checking whether the section already exists
4. If it doesn't exist, create new Section with today's year-month as the name. Wait 10 seconds before moving to the next step (This part creates new section in OneNote)
5. Create Page under the new Section (but this part fails to create the page in that new Section. See screenshot of the error below)
6. If Section already exists, create page under that section (this part works)
This is the error that I'm getting
Thank you in advance.