web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create a section in On...
Power Automate
Unanswered

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

(2) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

actually I have the same question as in this topic https://powerusers.microsoft.com/t5/I-Found-A-Bug/OneNote-create-section-then-create-page-in-that-section/m-p/76245#M1517. 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

Regards,

 

User_sen

 

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    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

     

    14.JPG

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

    item()?['id']

    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,

    Kris

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

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

  • NIKKO Profile Picture
    5 on at

    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?

  • plessor88 Profile Picture
    21 on at

    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.
    screenshot1.JPG

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    screencapture2.JPG

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    screencapture3.JPG

     

     

  • GabrielStJohn Profile Picture
    Microsoft Employee on at

    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!

    -Gabriel
    Flow Community Manager

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @plessor88 ,

     

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

     

    🙂

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

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

    https://powerusers.microsoft.com/t5/Building-Flows/Create-a-section-in-OneNote-followed-by-a-page-in-the-section-I/m-p/619138

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard