cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

PowerApps and OneNote

Hello,
I wan't to display a page content from OneNote in a HtmlText zone. I created a test app with dropdown to select the page here are the Items field:

DropDown1       'OneNote(Business)'.GetNotebooks()

DropDown1 _1  'OneNote(Business)'.GetSectionsInNotebook(Dropdown1.Selected.Key).value

DropDown1 _2  'OneNote(Business)'.GetPagesInSection(Dropdown1.Selected.Key;Dropdown1_1.Selected.id).value

The DropDown1_2 has an error "the section id is invalid".

 

Where's the bug?

 

Thank you

Patrick

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: PowerApps and OneNote

Hi @patrick_S_hexa,

 

Please try to change the formula to:

'OneNote(Business)'.GetPagesInSection(Dropdown1.Selected.Key;Dropdown1_1.pageUrl).value

This works for me.

 

Regards,

Mona

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

Re: PowerApps and OneNote

Hi,

 

It works with:

'OneNote(Business)'.GetPagesInSection(Dropdown1.Selected.Key;Dropdown1_1.Selected.pagesUrl).value

 

Thank You

Patrick

4 REPLIES 4
Community Support Team
Community Support Team

Re: PowerApps and OneNote

Hi @patrick_S_hexa,

 

 

I tested with your formula and got the same error.

Capture.PNG

 

I will ask for others who have more experience on OneNote. If I got any update later, I will update here.

 

Regards,

Mona

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

Re: PowerApps and OneNote

Hi @patrick_S_hexa,

 

Please try to change the formula to:

'OneNote(Business)'.GetPagesInSection(Dropdown1.Selected.Key;Dropdown1_1.pageUrl).value

This works for me.

 

Regards,

Mona

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

Re: PowerApps and OneNote

Hi,

 

It works with:

'OneNote(Business)'.GetPagesInSection(Dropdown1.Selected.Key;Dropdown1_1.Selected.pagesUrl).value

 

Thank You

Patrick

SudeshKumara
Level: Powered On

Re: PowerApps and OneNote

Hi All,

 

Use below code in Items property of Pages Dropdown.

 

Code :

If(!IsBlank(DropdownOneNoteNotebook.SelectedText.Key), 'OneNote(Business)'.GetPagesInSection(DropdownOneNoteNotebook.Selected.Key, DropdownOneNoteSection.Selected.pagesUrl).value.title)

 

Output :
Untitled.pngOne Note Notebook > Section > Page

 

Helpful resources

Announcements
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

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 264 members 4,922 guests
Please welcome our newest community members: