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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / powerapps onnote error
Power Apps
Unanswered

powerapps onnote error

(0) ShareShare
ReportReport
Posted on by 104

hi, i want to play around with the possibilities of powerapps and onnote.
But I absolutely don't know why this doesn't work with the GetPagesInSection method.

The following scenario:


I have a normal onnote with sections, pages and content.

Now I want to be able to display and select everything with ComboBoxes (to add a message later if necessary).

 

My combo boxes:
ComboBox_notebook
in Items: 'OneNote (Business)'. GetNotebooks ()

 

ComboBox_section
in item: If (! IsEmpty (ComboBox_notebook.Selected.Key); 'OneNote (Business)'. GetSectionsInNotebook (ComboBox_notebook.Selected.Key) .value)

 

here is the error:
ComboBox_Page
in items: 'OneNote (Business)'. GetPagesInSection (ComboBox_notebook.Selected.Key; ComboBox_section.Selected.id) .value

 

error message: the section Id is invalid. if a custom value was entered, please try selecting from the supplied values.

 

onNote fehler.png

any idea?

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Several things I would change from the default to get this to work. 

    1. First set all the ComboBoxes so that SelectMultiple = false.
    2. Your Items formula for the Section Combobox should be
      If(!IsBlank(ComboBox_notebook.Selected.Key);'OneNote(Business)'.GetSectionsInNotebook(ComboBox_notebook.Selected.Key).value)​

      Is Empty is for a table.  You are testing the existence of a single value

    3. Change the DisplayFields and SearchFields property of the Section combobox to ["name"].  Otherwise it will populate the dropdown with the ID of the section.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard