You are here:
Choose Between File-Based and Condition-Based Processing for Batch Jobs
When creating a batch job, you can select records for processing by either uploading a file with specific record IDs, or by defining conditions that filter records.
Required Editions
| View supported editions. |
File-Based Processing
Upload a CSV file containing the unique identifiers of records you want to process. The batch job runs only on the records listed in your file. This approach works well when you have a predefined list of specific records to process, receive files from another system or team with records that need updates, want to run a one-time operation without creating complex filter logic, want to let users upload files through a screen flow, or when your organization receives regular file uploads from external systems.
File-based processing is quick to set up for one-time operations and is best for ad hoc updates. You upload a CSV file with specific IDs, and the file can contain up to 10,000 record IDs. The record list is fixed, meaning the batch job processes exactly the records you specify in the file. Use this approach when you have a specific list of record IDs or when you need a one-time update that is faster to set up than creating filter conditions.
Condition-Based Processing
Use a criteria to identify records for processing. You define filter conditions, and the batch job finds all records that match. This approach works well when records share common field values that make them easy to identify, you need to run recurring operations with consistent logic, your record set changes over time and you want the job to automatically include new qualifying records, or you don't have a predefined list of specific record IDs.
Condition-based processing requires defining filter logic but is best for recurring operations. The record selection is dynamic based on current data, meaning the batch job queries the database to find all records that match your criteria. Record limits are determined by batch size settings rather than a fixed file size. Use this approach when you will run the operation regularly, when your records share common field values that make them easy to find automatically, or when you need the flexibility of processing different records each time based on current field values.
