# workflow-repeater

## Description

<mark style="color:purple;">`workflow-repeater`</mark> *adaptor runs a data-flo adaptor(s) from another Workflow within the current Workflow*.

This adaptor applies the reference workflow adaptors to each row of your current workflow.

## Inputs

**`data`**\
Type: `datatable`\
Required: Yes\
The datatable.

**`workflow`**\
Type: `text`\
Required: Yes\
The ID or the URL of the Workflow to run.

## Outputs

**`data`**\
Type: `datatable`\
The datatable.

## Examples

### Example 1: Default behaviour.

#### Inputs:

`data`:

| id | code |
| -- | ---- |
| 1  | GB   |
| 2  | TR   |
| 3  | US   |
| 4  | IND  |
| 5  | IND  |
| 6  | us   |

`workflow`: nBqNLD6DokPC2TUg8rmpd

#### Outputs:

`data`:

| id | code | name           |
| -- | ---- | -------------- |
| 1  | GB   | United Kingdom |
| 2  | TR   | Turkey         |
| 3  | US   | United States  |
| 4  | IND  | India          |
| 5  | IND  | India          |
| 6  | us   | United States  |

-> Ran a workflow to add a column `name` to the datatable.

## Use cases

* Users may find this adaptor useful in automating repetitive tasks such as loop commands in many programming languages.&#x20;
* Use this adaptor to perform some operation from one workflow on each element in another workflow. Operations can include grouping or categorizing data elements, applying calculations, filtering data or adding an AI generated description to an image in each row of a data table.
