# Salesforce Flow Limit

## Concepts

**Interview:** An interview is a running instance of a flow.

**Transaction**

**What are SOQL and DML?**

SOQL (Salesforce Object Query Language) and DML (Data Manipulation Language) are two languages that handle different operations inside a flow. &#x20;

**SOQL**: It is a specific type of computer language that we can use to communicate with the system to **retrieve** a specific set of data. It is like saying “give me all accounts that John owned” but using the language the system understands. Each request is called a query.

**DML**: Like SOQL, It is a specific type of computer language to **modify** a particular data set, like saying “change all John account rating into Hot”. Each request is called a statement.

## Flow limitations

### **Total number of SOQL queries issued: 100**

You can ask the system to retrieve specific data sets 100 times in one transaction.

### **Total number of records retrieved using 'Get Records' element**:&#x20;

Limit 50,000.

{% hint style="info" %}
No records limit when using the [Query Data Source](/flow/component-builder/data-sources/query.md).
{% endhint %}

### **Total number of DML statements issued:**&#x20;

Limit 150

### **Total number of records processed as a result of DML statements**:&#x20;

Limit 10,000

### **Maximum CPU time on the Salesforce servers:**&#x20;

Limit 10,000 milliseconds

CPU time is the time the servers use to process your flow solution.

### **Total number of duplicate updates allowed in one batch**:&#x20;

Limit 12

Duplicate update means you update the “**same record**” in one batch and can only do that less than 12 times per record.

## References

* [General flow information from Salesforce](https://help.salesforce.com/s/articleView?id=sf.flow.htm\&type=5)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avonnicomponents.com/flow/miscellaneous/salesforce-flow-limit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
