cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
User_sen
Level: Powered On

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

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-se.... 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

 

9 REPLIES 9
Community Support Team
Community Support Team

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

Hi @User_sen,

 

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 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.
Highlighted
User_sen
Level: Powered On

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

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

NIKKO
Level: Power Up

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

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
Level: Powered On

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

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

 

 

Administrator
Administrator

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

Hello, @User_sen!

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

-Gabriel
Microsoft Flow Community Manager
Anonymous
Not applicable

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

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?

hochman
Level: Powered On

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

Hi @plessor88 ,

 

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

 

Smiley Happy

 

Anonymous
Not applicable

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

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

hochman
Level: Powered On

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

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 254 members 4,936 guests
Please welcome our newest community members: