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 / '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
    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
    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
    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

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard