Syntax
MAP(array_of_objects, path)
Usage examples
| 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 } Copy |
| Formula | MAP(my_action.animals, "type") |
| Output | 1 [ 2 "Dog", 3 "Cat" 4 ] Copy |
| Input | 1 { 2 "my_action":[ 3 { 4 "a":{ 5 "b":{ 6 "c":"d" 7 } 8 } 9 } 10 ] 11 } Copy |
| Formula | MAP(my_action, "a.b.c") |
| Output | "d" Copy |
| Input | 1 { 2 "fetch_data":{ 3 "users":[ 4 { 5 "User ID":"ID1" 6 }, 7 { 8 "User ID":"ID2" 9 } 10 ] 11 } 12 } Copy |
| Formula | MAP(fetch_data.users, '["User ID"]') |
| Output | 1 [ 2 "ID1", 3 "ID2" 4 ] Copy |
Sample Actions
Event Transform
My Action
Event Transform
MAP