LOOP Each item in a list function

The LOOP Each item in a list function in RPA.

Help CentreBuilding Processes

This article describes the RPA Loop functionality to iterate over each item in a list.

For a full list of available functions, please read LOOP functions.


Description

The LOOP Each item in a list function allows you to iterate over each item in a comma or newline separated list of values. This is useful when you have a simple list of names, IDs, or other values and want to process each one individually.


Setting it up

To use the LOOP Each item in a list function, follow these instructions:

{{popups:rpas/add:action=loop-list}}

Once on a process map:

  1. Navigate to the process where you would like to add the LOOP Each item in a list function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the LOOP Each item in a list option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
ListYesText-A comma or newline separated list of items, or a variable like {names}
Loop variableYesText-Variable name for the current item in each iteration
Max iterationsNoNumber-Maximum number of iterations

Output variables

VariableTypeDescription
Loop variableTextThe current item value in each iteration

Errors

ErrorDescription
Empty listThe list contains no items after splitting

Tips

  • Items can be separated by commas, newlines, or both
  • Whitespace around each item is automatically trimmed
  • Empty items are skipped
  • You can use a variable like {names} that contains the list

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.