OBJECT
Returns an object with keys and values as specified.
Categories: Objects
Syntax
OBJECT(key1, value1, key2, value2, ...)
Examples
Example 1
Formula
OBJECT("city", "Melbourne", "state", "Victoria", "post_code", 3000, "country", "Australia")
Output
1
{
2
"city": "Melbourne",
3
"country": "Australia",
4
"post_code": 3000,
5
"state": "Victoria"
6
}
Example 2
Input
1
{
2
"my_action": {
3
"location": {
4
"city": "Melbourne",
5
"country": "Australia",
6
"post_code": 3000,
7
"state": "Victoria"
8
},
9
"person": {
10
"age": 45,
11
"name": "John Smith"
12
},
13
"registered": true
14
}
15
}
Formula
OBJECT("Attendee", my_action.person.name, "Location", my_action.location.city, "Status", IF(my_action.registered=TRUE, "Registered", "Not Registered"))
Output
1
{
2
"Attendee": "John Smith",
3
"Location": "Melbourne",
4
"Status": "Registered"
5
}
Sample actions
Select an action to inspect
You can also click "Copy action" and paste them in your Tines story to see how they work.
Select an action to inspect
You can also click "Copy actions" and paste them in your Tines story to see how they work.