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 / 'OneNote(Business)'.Ge...
Power Apps
Unanswered

'OneNote(Business)'.GetPageContent(....) error - "not valid JSON"

(0) ShareShare
ReportReport
Posted on by 10

Im usin the OneNote connector in PowerApps.  It works well reading OneNote notebook, , section and read pages (views in a gallery). 

 

But when i try to read the Page content, i get the error that using: 'OneNote(Business)'.GetPageContent

 

Set(varOneNotePage;'OneNote(Business)'.GetPageContent(DropDownNotebooks.Selected.Key;Dropdown1.Selected.pagesUrl;GalPages.Selected.id))

 

The error is that the returned data not is a valid JSON format.  

TrulsBj_0-1663307371907.png

 

 

When i se inn the application debug, i see that the return is only a body with HTML data: 

TrulsBj_0-1663306061943.png

 

 

My goal i to show the OneNote page in my app. Any idea on a solution on this problem ?

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

    Hi @TrulsBj ,

     

    As a workaround, you could create a powerapps button flow.

    vxiaochenmsft_0-1663320997214.png

     

    Best Regards,

    Wearsky

  • TrulsBj Profile Picture
    10 on at

    Yepp, this is a good workaround, it is tested, but it is a bit slow for us - so i still need a solution on reading page content directly from PowerApps.    

     

    Thank you

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @TrulsBj ,

     

    Unfortunately, it seems that the function of OneNote connector does not support power apps. (I reproduced the error)

    I don't believe we can go any further down this way unless the function is 'fixed'.

    Do you consider creating a custom connector with graph api?

    Get page - Microsoft Graph v1.0 | Microsoft Learn

     

    It may have a better performance than flow.

     

    Best Regards,

    Wearsky

  • marceloandrade Profile Picture
    4 on at

    Hi, @v-xiaochen-msft . In that case, would I be able to use the custom connector without a premium account?

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @marceloandrade ,

     

    Unfortunately, the custom connector requires premium license.

     

    Best Regards,

    Wearsky

  • Charlie Profile Picture
    104 on at

    Hi @TrulsBj ,

     

    Have you fixed your issue ? I try to do that and... I have the same error.

     

    Thank in advance.

     

    Charles.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard