Repeatable
Introduction
The Repeatable Action in Autom Mate allows users to iterate through data sets, such as numeric arrays or data tables, performing operations on each element or row sequentially.
The purpose of the Repeatable Action is to streamline processes that require performing actions on each item or row within a dataset, making it ideal for tasks like processing Excel rows, data tables, emails, and more.
What is Repeatable?
The Repeatable Action provides two types of looping:
Variable: For each data in variable:
Used to iterate through each data element in a variable, processing them one by one.
Suitable for iterating over arrays, lists, or similar data structures.
Mail: For each mail in variable:
Designed for iterating through each email in an array variable, typically used after the Get Mail Action.
Ideal for processing email data, extracting information, and performing actions on each email.
How To Use Action
Variable: For Each Data in Variable
Description: The Repeat Action for data elements allows users to perform actions on each item in a variable, processing them sequentially.
Usage:
Data Of The List:
Select the variable containing the data elements to iterate through.
Choose Variable:
Assign each data element to this variable for processing.
Click the "+" button to add a new variable if needed.
Assign an Index:
Select or create a new number variable to assign an index to each iteration.
The index starts from 1, representing the order of the data element.
Execution:
Drag and drop other actions into the Repeat Action to execute for each data element.
Mail: For Each Mail in Variable
Description: The Repeat Action for emails allows users to iterate through each email in an array variable, processing them one by one.
Usage:
Data Of The List:
Select the array variable containing the emails to iterate through.
Choose Variable:
Assign each email to this variable for processing.
Click the "+" button to add a new variable if needed.
Execution:
Drag and drop other actions into the Repeat Action to execute for each email.
Inspect each mail item
Use the returned mail item as the loop input; check its fields before accessing nested values.
Mail items contain fields such as Id, Folder, Subject, Body, From, Cc, To, Date and Attachments. Inspect the actual Get Mail output to confirm each value type and the attachment representation before mapping the item into another action.
Additional Tips
Use Cases
FAQ
Worked example: process exactly three local items
Use a fixed three-item array before connecting a loop to external records. This gives you a visible iteration count and a bounded test.

Data Of The List supplies the collection. Assign the current value to variable receives one item on each iteration. Assign index to variable accepts a Number variable for the loop position. Put the per-item action inside the visible repeat scope. These controls were inspected; the three-iteration recipe below still needs its own runtime check.
1. Use Array → Assign to set an Array variable named departments to ["finance","hr","it"].
2. Add Repeatable → Repeat. Set Repeat Source to For each data in variable and select departments in Data Of The List.
3. In Assign the current value to variable, select a String variable named current_department. In Assign index to variable, select a Number variable named department_index.
4. Place a String → Assign action inside the repeat scope. Map current_department into its output so that the action log records the value for each iteration.
5. Run once and inspect the repeated action records. Expect three iterations containing finance, hr and it. The documented index starts at 1; compare the actual index values with 1, 2 and 3 before using them in a downstream mapping.
6. If the action appears once or more than three times, inspect its placement inside the repeat scope and the actual input array before adding writes or notifications.
Was this helpful?

