Showing results for 
Search instead for 
Did you mean: 
New Member

Issue while using the Graph API to create a custom connector to OneNote


I am facing an issue in the custom connector using Graph API

I want to connect to OneNote and be able to create and get notebooks, sections and pages

So far, all actions are working except the create page

the main issue is that, using the graph explorer Graph Explorer - Microsoft Graph , the request body we get is an HTML code! But in custom connector creation, it needs to be Json

I am trying to write it as Json myself but I got this error: "Page create requests require the content to be multipart, with a presentation part."


Here's the request body in graph explorer (which should be Json in order to be used)


and here's the response body's preview 





And here's the request body in power automate when creating an action in the flow (it says it should be Json and doesn;t accept anything else).



Im grateful for any help I can get


The UI is limited. Please define your API using the swagger editor or using a text editor and deploy using paconn CLI. Set the content type header to html and body to whatever you want to send.

If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE 👍.

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (1,176)