Record Triggered Flows – Running on Multiple Records

I'm trying to implement some logic that I would normally use Apex for, but decided to try record triggered flow so that it would be easier for an admin to turn on or off.

When I create a record triggered flow, there is a variable called 'Record > OBJECT NAME' that I can access from any node. My question is what happens when a number of records are updated/inserted together? Does the flow run on the collection of records?

In apex I would write a trigger helper method that would accept a List, and would iterate over those. Is there something similar in Flow?

If not, that's a serious limitation. If, for instance I create new records for each record that was updated, I will very quickly run into limits if it's a Flow per record.

Best Answer

It shouldn't be an issue. See the Flow Bulkification in Transactions article:

If you’re working with flows, you don’t even have to think about bulkification. Flow interviews bulkify actions for you automatically.

Sounds magical but you'll have to read the whole help doc to see the details.

Additional Reads

Similar question and answer here from the early versions of Flow.

Lastly, look here to see a proper test with hundreds of records, and concluded that the bulk is done in 200 record batches:

Therefore, we conclude that Scheduled Flows are Bulkified and process records in a batch of 200 records.

Related Topic