cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bobest23
Level: Power Up

Cannot display output from 'OneNote(Business)'.GetPageContent

I am trying to display the content of a OneNote page in my PowerApps app and I am getting the following error:

 

'OneNote(Business)'.GetPageContent failed: The response type returned is invalid. Expected: JSON.

 

I have three dropdowns to select the Notebook, Section, and Page.  The output window is an HTML text box.

Here is the code I have:

 

Dropdown1: 'OneNote(Business)'.GetNotebooks()

Dropdown2: ('OneNote(Business)'.GetSectionsInNotebook(Dropdown1.Selected.Key).value)

Dropdown3: 'OneNote(Business)'.GetPagesInSection(Dropdown1.Selected.Key,Dropdown2.Selected.pagesUrl).value

HTML Text Box: ('OneNote(Business)'.GetPageContent(Dropdown1.Selected.Key,Dropdown2.Selected.pagesUrl,Dropdown3.Selected.id))

 

Any ideas why this is not working?  I do find it strange that to get the sectionID I have to use Selected.pagesUrl and not Selected.id.

 

3 REPLIES 3
drold
Level: Powered On

Re: Cannot display output from 'OneNote(Business)'.GetPageContent

@bobest23 same issue, did you ever figure this out?

Qlxr
Level: Powered On

Re: Cannot display output from 'OneNote(Business)'.GetPageContent

not working for me too. could some one from MS put some attention on this connector, thanks!

camascote
Level: Powered On

Re: Cannot display output from 'OneNote(Business)'.GetPageContent

I was having the same problem but finally figured it out. Changed the 'Page Id' dynamic content to 'Pages Content Url' instead of 'Pages Id', and it works fine now. 

2019-08-14_22h26_59.png

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: 55 members 4,791 guests
Please welcome our newest community members: