How to add object to array of objects?

Hi,

I have an array of objects and would like to add one more object to it. How can it be done?

Example:
array = [
{
“id”: “abc”,
“label”: “ABC label”
},
{
“id”: “def”,
“label”: “DEF label”
}
]

newObject = {
“id”: “def”,
“label”: “DEF label”,
“newKey”: " New Value"
}

I have tried using Concat formula:

CONCAT(array, [newObject])

This however gives warning and final variable ends up being null.
image

Appreciate if anyone has any thoughts…

Use the WITH_ITEM formula

2 Likes

Thanks ! That did work!