Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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.

 

  • Lemak89 Profile Picture
    19 on at
    Re: Using Pagination with OData filter query for SharePoint online list.

    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

     

  • v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Using Pagination with OData filter query for SharePoint online list.

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,596 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow