Syntax
MAP_LAMBDA(array, lambda)
Usage examples
Example 1
Construct an array of objects from input array.
Input | 1 { 2 "my_action": { 3 "email_array": [ 4 "foo@tines.com", 5 "bar@tines.com" 6 ] 7 } 8 } |
Formula | MAP_LAMBDA(email_array, LAMBDA(elem, OBJECT("email_address", OBJECT("address", elem)))) |
Output | 1 [ 2 { 3 "email_address": { 4 "address": "foo@tines.io" 5 } 6 }, 7 { 8 "email_address": { 9 "address": "bar@tines.io" 10 } 11 } 12 ] |
Sample Actions
Transform
My Action
Transform
MAP_LAMBDA
Select an action to inspect
You can also click "Copy actions" and paste them in your Tines story to see how they work.