ARRAY_SET_AT command

Set an element at a specific index position in the array that you have specified using the ARRAY_SET_AT command.

For example, you may want to update phone number at the index value "1".

To define an ARRAY_SET_AT command to modify an existing array value:

  1. Navigate to the Home > Applications > Task > Rule Procedure > Rule Editor page.
  2. Using the variable (PhoneNumber), assign a new value to the variable.
  3. Drag and drop the ARRAY_SET_AT command to the Working Canvas to modify an array value.
    1. From the Choose Array drop-down, select the required array variable.

    2. In the Array Index text box, enter a numeric value of the index of the array element that will be modified. You can also add parameters.

    3. From the Choose Variable drop-down, select a variable that is of the same data type as the array. The variable's value replaces the Array element's value on the specified array index position.

    • Alternatively, you can also enter a new variable. When you add a new variable and click Ok, you are directed to the Add Variable dialog box. In the dialog box, the Name text box displays the name the you have entered. From the Type drop-down, you can select the required data type, and then click Save.

    ARRAY_SET_AT Command
  4. Click Ok to modify the existing value at the specified index number with the new value.