This action splits a text at a specified delimiter pattern and loops through the part, assigning the next text part to a selected variable in each iteration.
The For Each Text Part step action can be configured using the following properties:
See the example below where we split a text using "," as delimiter.
We have the following input text:
We want to iterate over the fruits and perform some action for each; for example store the name of the fruit in a database.
As delimiter, we specify:
and as output variable we select
In the first iteration, the
Fruit.name variable will contain the value apple, in the
second iteration it will contain the value pear. The entire loop will contain six iterations and in the
final iteration the
Fruit.name variable will contain the value pineapple.