TO_YAML

Converts an object into YAML

Syntax 

TO_YAML(object)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"object": {
4
"city": "Melbourne",
5
"state": "Victoria",
6
"post_code": 3000,
7
"country": "Australia"
8
}
9
}
10
}

Formula

TO_YAML(my_action.object)

Output

"---\ncity: Melbourne\nstate: Victoria\npost_code: 3000\ncountry: Australia\n"

Sample Actions 

Event Transform
My Action
Event Transform
TO_YAML

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?