MAP

Creates an array by extracting the values of a named property from an array of objects.

Syntax 

MAP(array_of_objects, property)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"animals": [
4
{
5
"color": "Brown",
6
"type": "Dog"
7
},
8
{
9
"color": "Beige",
10
"type": "Cat"
11
}
12
]
13
}
14
}

Formula

MAP(my_action.animals,"type")

Output

1
[
2
"Dog",
3
"Cat"
4
]

Sample Actions 

Event transform
My Action
Event transform
MAP

Select an action to inspect.

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?