# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cgps.gitbook.io/data-flo/reference-guide/workflow-repeater.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
