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 / Update SP list with ba...
Power Automate
Unanswered

Update SP list with batch number every 3000 records

(0) ShareShare
ReportReport
Posted on by

Hey,

 

This seems really simple in my head but i cannot work it out. 

 

I want to create a flow to update a column in SP list called BatchNumber. I want the first 3000 records to have 1, the next 3000 to have 2, the next 3000 to have 3 and so on. 

 

Can anyone help with this? 

Categories:
I have the same question (0)
  • Unknown geen idee Profile Picture
    1,757 on at

    Dear D,

    • Create a variable called 'Counter3000'.
    • Create a variable called 'BatchNumber' and set it to 3000.
    • Loop through all your records via an 'Apply to each'.
    • Inside the loop, update the record with the variable BatchNumber.
    • Inside the loop, include action 'Increment Counter3000 variable' +1.
    • Inside the loop, include a conditional statement which checks if the Counter3000 = 3000 ... if so, then increment BatchNumber +3000 and reset Counter3000 to 0.
    • Continue...

    Please note that because you are using variables, you cannot run parralel loops which affects your speed.

    You can probably do this without variables as well ... but that becomes a bit more complicated.

     

    Happy flowing,

    Koen

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