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 Apps / Having trouble populat...
Power Apps
Unanswered

Having trouble populating droplist of OneNote Pages in Canvas App

(0) ShareShare
ReportReport
Posted on by 2

I am building a Canvas App where the user will select a OneNote notebook from a droplist, then select a section from a second droplist and then select a page from a third droplist.  I am able to get the list of notebooks populated, and I am able to get the list of sections for the selected notebook, but I cannot get the third droplist to populate the list of pages in the selected section.

 

Here is the formula for getting the notebooks: 

'OneNote(Business)'.GetNotebooks()

 

Here is the formula for getting the sections of the selected notebook: 

'OneNote(Business)'.GetSectionsInNotebook(NotebookNameDrp.Selected.Key).value.name

 

Here is the formula for getting the pages in the selected notebook and section: 

'OneNote(Business)'.GetPagesInSection(NotebookNameDrp.Selected.Key, NotebookTabDrp.Selected.name).value.title

 

The third droplist control only lets me select the name of the selected section, but then it says it is an invalid sectionid.  Any help getting this to work would be greatly appreciated.

 

 

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

    Hi @jimfield ,

     

    Please try this formula:

    'OneNote(Business)'.GetSectionsInNotebook(NotebookNameDrp.Selected.Key).value

    instead of

    'OneNote(Business)'.GetSectionsInNotebook(NotebookNameDrp.Selected.Key).value.name

    Then you can set the display field of the combo box/dropdown.

    vxiaochenmsft_0-1656578010881.png

     

    And use 

    'OneNote(Business)'.GetPagesInSection(NotebookNameDrp.Selected.Key, NotebookTabDrp.Selected.pagesUrl).value

    instead of 

    'OneNote(Business)'.GetPagesInSection(NotebookNameDrp.Selected.Key, NotebookTabDrp.Selected.name).value.title

     

    Best Regards,

    Wearsky

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard