cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

OneNote GetPagesInSection returns only 20 results

I'm building a flow that needs to check if a Page exists before creating it. For sections where there are less than 20 pages then this works fine, but since the GetPagesInSection action returns max 20 results duplicates are created for larger sections. Is there any way to raise this limit or add filter queries to the search?

3 REPLIES 3
Super User II
Super User II

Hi @ravz,

 

With the Microsoft Graph it is possible to use the top query string option to override the 20 item limit:
https://graph.microsoft.com/v1.0/me/onenote/pages?top=100

 

You can also use the nextLink option of that same page collection query.

So maybe use Microsoft Graph in your Flow is a good workaround?

https://docs.microsoft.com/en-us/graph/onenote-get-content#page-collection

Thanks @Expiscornovus  I will try this but it's really annoying, can't MS add some more parameter options to this connector? Now I will have to create a Graph API service account and create auth actions before I can get to the simple action of retrieving pages from a notebook..

Hi @ravz,

 

I agree. Maybe you can put it up on the Flow Ideas?

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

You will definitely get my vote 🙂

 

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (4,407)