Batch Processing
Learn how to perform batch processing.
Overview
Batch processing is a method of handling data by dividing it into smaller groups (batches) and processing each group separately. This is useful when working with large volumes of information such as customer records, invoices, or files as it improves efficiency and error handling.
How It Works
When you create batches, the items are divided into groups of the specified batch size. Each batch becomes a separate collection that you can process independently.
Example: Instead of sending 1,000 customer emails all at once, you can create batches of 50 emails each, resulting in 20 manageable batches to process one at a time.
Syntax
Below is a line-by-line overview of the automation syntax. Expand each line to learn more.
After creating batches, process each one individually using:
Within the processing logic, reference the items in the current batch using the batch's <collection>. For example:
Examples
1. Basic Batch Creation
The following example shows how to create batches from a simple list of numbers:
Batch 1: [1, 2, 3]
Batch 2: [4, 5, 6]
Batch 3: [7]
2. Processing Customer Records
Here, the customers are processed in batches of 10.
3. Invoice Processing
In this example, the table's rows are broken up in batches. Then, each batch is processed in parallel using run parallelization.
Last updated
Was this helpful?
