1. Docs
  2. Formulas
  3. Functions

MERGE

Creates a new object by merging two or more objects together.

Categories: Objects

Syntax

MERGE(object, object, ...)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"object1": {
4
"city": "Melbourne"
5
},
6
"object2": {
7
"country": "Australia"
8
}
9
}
10
}

Formula

MERGE(my_action.object1,my_action.object2)

Output

1
{
2
"city": "Melbourne",
3
"country": "Australia"
4
}

Example 2

Input

1
{
2
"my_action": {
3
"object1": {
4
"country": "Ireland"
5
},
6
"object2": {
7
"country": "Australia"
8
}
9
}
10
}

Formula

MERGE(my_action.object1,my_action.object2)

Output

1
{
2
"country": "Australia"
3
}

Sample actions

Event Transform
MERGE
Event Transform
My Action

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?