function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rohit Vaidya 3Rohit Vaidya 3 

flow thresholds

what is the threshold of looping in flows?
SwethaSwetha (Salesforce Developers) 
HI Rohit,
The threshold of looping in flows is 2000 executed elements at runtime per flow. See https://help.salesforce.com/s/articleView?id=000382258&type=1

To avoid hitting the limits, it is recommended to build the flow in the most efficient way possible and to never perform a DML statement inside of a loop

Related:
Complete Guide to Salesforce Flow Limits and How to Avoid Them: https://www.salesforceben.com/complete-guide-to-salesforce-flow-limits-and-how-to-avoid-them/

Salesforce Flow Loops – Best Practices and Examples: https://www.salesforceben.com/salesforce-flow-loops-best-practices-and-examples/

If this information helps, please mark the answer as best. Thank you
Shuvam PatraShuvam Patra
The maximum number of times you can loop in a flow is 2,000 times per transaction. This limit helps to prevent excessive resource usage and to maintain overall system performance.