---
title: MERGE
url: https://www.tines.com/docs/formulas/functions/merge/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# MERGE

*[View on tines.com](https://www.tines.com/docs/formulas/functions/merge/)*

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

**Categories:** Objects

## Syntax

```
MERGE(object, object, ...)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "object1": {
      "city": "Melbourne"
    },
    "object2": {
      "country": "Australia"
    }
  }
}
```

Formula:

```
MERGE(my_action.object1,my_action.object2)
```

Output:

```json
{
  "city": "Melbourne",
  "country": "Australia"
}
```

### Example 2

Input:

```json
{
  "my_action": {
    "object1": {
      "country": "Ireland"
    },
    "object2": {
      "country": "Australia"
    }
  }
}
```

Formula:

```
MERGE(my_action.object1,my_action.object2)
```

Output:

```json
{
  "country": "Australia"
}
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "MERGE",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "=MERGE(my_action.obj1, my_action.obj2, my_action.obj3)"
        }
      },
      "position": {
        "x": -6540,
        "y": -1470
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "obj1": {
            "animal": "dog"
          },
          "obj2": {
            "colour": "red"
          },
          "obj3": {
            "fruit": "apple"
          }
        }
      },
      "position": {
        "x": -6540,
        "y": -1590
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 1,
      "receiverIdentifier": 0
    }
  ],
  "diagramNotes": []
}
```
