Skip to content
Sign in
Home About Services Real estate Pharma and life sciences Apps Salesforce Clients Feedback Team Insights Careers Learn Life at Cloudastick Merchandise Agentforce Contact Sign in

Home / Insights / Salesforce Flow Limitations

Salesforce Flow Limitations

March 6, 2022 · Andrea Medhat

As Salesforce developers, we sometimes prefer to build flows rather than write code since flows are easier to deploy and maintain. However, sometimes you will have to write apex classes or triggers to get your work done. So, here is an important consideration while building a flow: a flow can execute only up to 2,000 components. This means that the maximum number of nodes that a flow can pass through in a single context is 2,000. You might think this is a big number, but, unfortunately, you will sometimes need more!


Imagine you have a bunch of records to iterate on and run some logic for each of them. For a collection of 500 records, you can have at most four components in each iteration. Thus, you have to call an apex class to do logic with mass data.

The above is an example of a flow that would fail to finish if we have a large collection of order records. 

Ready to transform your business?

Tell us about your Salesforce goals. A Cloudastick consultant in Cairo will follow up.

Get started today