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

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard