Skip to main content
Community site session details

Community site session details

Session Id : jKdSEbG35D+CahgJLIXVJD
Power Automate - General Discussion
Answered

Power Automate FLOW counting and limiting the number of records to process

Like (1) ShareShare
ReportReport
Posted on 27 Apr 2022 11:31:35 by 555

I have very large List/library (100,000) and every night I like to process and mark a column only first 5000 records via a recurrence FLOW. Next day another 5000 from the remaining bunch and so on to keep my APIs under my daily allowance.

How can I do place a counter at the trigger level and stop the FLOW when it reaches the set value?

Any suggestion is appreciated,

Thank you,

SueA.

  • SueA Profile Picture
    555 on 29 Apr 2022 at 13:34:15
    Re: Power Automate FLOW counting and limiting the number of records to process

    I am sorry for this delayed response. I tried your suggestion and it worked perfectly on various sizes of Lists and libraries! Thank you for suggesting this awesome solution!

  • Verified answer
    Rhiassuring Profile Picture
    8,688 Moderator on 28 Apr 2022 at 07:12:03
    Re: Power Automate FLOW counting and limiting the number of records to process

    Hi there, 


    You could always just create a tracking list somewhere and use the SP IDs. Ie, on run, check config list, get ID (1), add 4999 (5000), and iterate through records until the ID = that config number. Then do the same thing - next night, add another 4999 (9999), iterate until you hit that ID #. Your loop would be a Do Until "ID" is equal to or greater than 5000. 

    Would that work for you?

    Rhia

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete