Help Centre › Building Processes
This article describes the RPA Loop functionality to each record from an API.
For a full list of available functions, please read LOOP functions.
Description
The LOOP Each record from an API function allows you to each record from an API.
Setting it up
To use the LOOP Each record from an API function, follow these instructions:
{{popups:rpas/add:action=loop-api}}
Once on a process map:
- Navigate to the process where you would like to add the LOOP Each record from an API function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the LOOP Each record from an API option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Variable | Yes | Text | - | Variable containing the data to loop through |
| Max iterations | No | Number | - | Maximum number of iterations |
| Operator | No | Select | - | Comparison operator for conditions |
| Transaction | No | Switch | Off | Enable transaction logging |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| Empty data | The variable contains no data to loop through |
Tips
- Loops through API response data
- Use with the api action to fetch data first