Skip to main content

Iterate

The Automation Block known as Iterate is a powerful tool designed to simplify repetitive task execution. Unlock its potential to iterate through lists, collections, or data sets, making it an invaluable asset for automating tasks that require repetitive actions.

Iterate

Streamlining Repetitive Tasks

Imagine scenarios where you need to perform the same action on multiple items in a list, or process data records one by one. This is where the Iterate automation block shines.

Iterate
Iterate

Configurable Iteration

With Iterate, you can configure the block to iterate through a list, collection, or data set, specifying the actions to be performed on each item. For example, you can automate the process of sending personalized emails to a list of recipients.

Iterate
Iterate Configuration

Precision in Repetition

Iterate ensures precision in repetitive tasks by executing the specified actions on each item systematically. It minimizes manual effort and reduces the chances of errors when dealing with repetitive processes.

Iterate
Iterate
  • ITERATION_NAME.INDEX: Represents the current index of the iteration. For example, during the first iteration, ITERATION_NAME.INDEX will be 1.

  • ITERATION_NAME.VALUE: Represents the value of the current item in the iteration.

Example 1: (Array of Values)

  • Consider an array of names: ['John', 'Rose', 'Max'].
  • On the first iteration, ITERATION_NAME.INDEX will be 1, and ITERATION_NAME.VALUE will be 'John'.

Example 2: (Array of Objects)

  • Consider this array of objects:

    [{ 
    name: 'John',
    age: 32
    }, {
    name: 'Rose',
    age: 30
    }, {
    name: 'Max',
    age: 28
    }]
  • On the first iteration, ITERATION_NAME.INDEX will be 1.

  • You can access specific property values from each object:

    • ITERATION_NAME.VALUE["name"] will be 'John'.
    • ITERATION_NAME.VALUE["age"] will be 32.
  • On the second iteration, ITERATION_NAME.INDEX will be 2.

  • For the second object in the array:

    • ITERATION_NAME.VALUE["name"] will be 'Rose'.
    • ITERATION_NAME.VALUE["age"] will be 30.

In essence, the "Iterate" automation block simplifies and accelerates repetitive task execution, allowing you to efficiently handle large sets of data or lists with ease.

Nested Iteration

For cases involving multi-dimensional arrays of objects, where iteration is required within each object, you can nest iterations with distinctive actions and tasks.

Nested Iteration
Nested Iteration