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 Automate / Using Pagination with ...
Power Automate
Unanswered

Using Pagination with OData filter query for SharePoint online list.

(0) ShareShare
ReportReport
Posted on by 19

Hi all,

 

Is anyone able to explain how OData filtering is working along with the Pagination in SharePoint 'Get items' action?

 

I have the list that contains 10k records and My flow is triggered when new item is created.

I need to get only records where Title equals 1. Record's ID are as per the below screenshot.

Lemak89_0-1644238708013.png

Once i run the flow with OData defined to Title eq '1' and disabled pagination, i receive 2 items with ID 1 and 10:

Lemak89_1-1644238874976.png

Lemak89_2-1644238886505.png

Lemak89_3-1644240436488.png

 

OK, i get it. By default, items threshold is set to 100 first items once Pagination is disabled:

 

Lemak89_7-1644240849448.png

 

Lemak89_4-1644240696267.png

 

Lemak89_8-1644240897794.png

 

But if i enable pagination with threshold set to 100, and defined filter query, i'm receiving 4 items(as if whole 10k records would be taken for filtering).

Lemak89_10-1644241114700.png

Lemak89_9-1644241047418.png

Lemak89_11-1644241156175.png

 

When i removed Filter Query from the action, i received 100 records as expected 😕

Lemak89_13-1644241459973.png

 

Lemak89_12-1644241441254.png

Lemak89_14-1644241525928.png

 

Could anyone explain how query to the SharePoint is executed in these instances?

 

it looks as if with disabled pagination, firstly 100 items are extracted, then filtering is performed on this 100 records and finally items are sent to the flow, once with enabled Pagination, firstly entire table is filtered and then items are sent to the flow.

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Lemak89,

    I think I get what you want.

     

    I want to explain to you that the Get Items action will always capture all the records that fits the filter query but return only 100 of them at max.

     

    For example, you have 200 records that Title equals 1, but the final result will always return 100 of them if you set the threshold as 100 no matter you enable the Pagination or not.

     

    In your scenario, you enable the Pagination and you set the threshold as 100, the filter query helps you capture all the records that fits the condition, so it displays 4 as result.

    However, if you remove the filter query and keep other settings same, it will always display 100 as result for that you have set the threshold as 100.

  • Lemak89 Profile Picture
    19 on at

    Hi @v-qiaqi-msft,
    Thank you for your answer 👍.

     

    What about if pagination is disabled, and filter query is set to Title eq '1' as per the below screenshots?

    Lemak89_0-1644393303882.pngLemak89_1-1644393315271.png

    According to your explanation, it should capture all the records that fit the query (4 records), and return them since 100 records threshold is not exceeded.

     

    But actually I'm receiving 2 items

    Lemak89_2-1644393570007.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 604

#2
Valantis Profile Picture

Valantis 502

#3
Vish WR Profile Picture

Vish WR 417

Last 30 days Overall leaderboard