UNION

This function merges two arrays. These arrays can either be within the same Event or from two distinct Actions. The function requires that the inputs be arrays, although it can also process an array nested within an object, as long as it directly references the array. The order of the merged array is determined by the sequence in which the paths are listed.

Syntax 

UNION(array1, array2)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"array1": [
4
1,
5
2,
6
3
7
],
8
"array2": [
9
3,
10
4,
11
5
12
]
13
}
14
}

Formula

UNION(my_action.array1, my_action.array2)

Output

1
[
2
1,
3
2,
4
3,
5
4,
6
5
7
]
Was this helpful?