The Edit an Array Property action lets you modify an array in memory. The Loop: For Each Item action lets you loop through each items in a collection and perform an action.

In this example, you'll learn how to create an array and add items to it. You'll then see how you can cycle through each item in the array.

Step 1 - Creating an Array

We'll create an array with 3 items in it. To create this array perform the following steps:

  1. Select Manage Properties then Edit an Array Property:

Untitled

  1. Select the Edit an Array Property action and set the following properties:
    1. Type of change: push
    2. Items Property: dialog.ids
    3. Value: 1

Untitled

  1. Repeat the process two more times but set the value property to "2" and "3" for the second and third instances of the Edit an Array Property actions. After doing this the designer canvas in UI Builder will resemble the following:

Untitled

The array has now been created with 3 new items in it (1,2,3). Next we can loop through this array by using the Loop For Each Item action.