Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create a section in OneNote and then create a page within this section.



actually I have the same question as in this topic But I didn't find any answers. Can anyone help me?


I want 1. to create a section with the same name as tittle of the item in sharepoint list.

           2. check, if there already exists a section with the same name

                a. if yes, create a page inside this section.

                b. if no,   create a section with this name





Community Support
Community Support

Hi @Anonymous,


Thanks for your feedback, I have made a test on my side and I faced same issue with the thread that you provided. My flow's configuration as below:13.JPG



Within "Create page in a section" action, Section Id field set to following formula:


But even though I get the section id of the section, the flow still failed as below:15.JPG



I have posted this this issue to my product team, if this issue is solved, I would reply here.



Best regards,


Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Not applicable

Thank you Kris, please keep me updated if you get any answer.

Frequent Visitor

Doing the same thing for me.. I tried to take back the created name or ID, but alwayse the message  "The section id is invalid. If a custom value was entered, please try selecting from the supplied values., clientRequestId: "


Does someone has an update?

Frequent Visitor

I'm a total nube to Flows so if my solution is not elegant, "Oh well".


I was banging my head up against the wall with this same problem.


The "sectionid" field does not work for the "Create page in a section" action, even if you pull it from a "Get Sections in Notebook" action.  The flow just does not read it or recognize it.


I noticed in the description of the section id that it says you can use the id OR the url.  I also noticed in another test that I did that when you manually select the section from the drop down menu, run the flow and look at the output, the flow uses a URL, not the big long section id number.


Bottom line:  you can create the page if you use the PagesURL field as the sectionid.


I used "Get sections in notebook", filtered the results to the section I wanted, put the value into a string variable and then used that value in the "create page in a section" action and Voila!


Here is a screenshot.  Ignore the extra steps, they were other attempts at troubleshooting the problem.

I left out identifying info.  You can see part of the URL.






































Community Champion
Community Champion

Hello, @Anonymous!

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @plessor88‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

Thank you for being an active member of the Flow Community!

Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager

Not applicable

You did just what I am trying to do.  Can you help me out?  I cannot follow form your screenshots.


I am:

Taking a value form a new email subject line

Storing that as a variable

Using that variable to make a new section in OneNote

(all of this works fine)

Creating a page in that section with the body of the email


That last step fails because I cannot use the variabel to select the very section I just made.  From your post I understand that I have to resolve the variabel into the URL for the section.  I see you are doing this with a 'get sections in notebook' function and doing something with an array variable.  But I get lost there.


Can you help?

Not applicable

Hi @plessor88 ,


Thanks a lot for the hint! Having the url in a variable also solved the issues I was facing!!! LEGEND!!!




Not applicable

Can you help me?  I tried to follow what @plessor88 posted but I got lost.

Not applicable

Hi @Anonymous , I hope the images below will guide you better.


My flow sends an email to a wider group based on a daily file under a "month" section.


Let me know if it works for you.


Edit your flow  Microsoft Flow 2019-07-01 15-27-06(1).pngEdit your flow  Microsoft Flow 2019-07-01 15-29-03(1)(1).pngEdit your flow  Microsoft Flow 2019-07-01 15-36-38(2).png

Not applicable

I had the same issue and Page URL was the answer... Here's a link to my question and answer.

I'm paraphrasing here, but if it's dumb and it ain't dumb. Well done, I was getting annoyed at this.


Disclaimer: I am not a computer scientist/engineer/coder, but to me, it looks like there is a delay between the creation of the section and when OneNote refreshes, but that delay isn't there when using the "Create Section in Notebook Object ID" variable, so it is trying to create the page before there is a section to add the page to.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,090)