REMOVE_KEY

Removes the specified key from an object. Path is a dot separated path to the object, you can escape dots using backslash

Syntax 

REMOVE_KEY(object, path)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"person": {
4
"email": "kubrik@movies.com",
5
"name": "Stanley"
6
}
7
}
8
}

Formula

REMOVE_KEY(my_action, "person.email")

Output

1
{
2
"person": {
3
"name": "Stanley"
4
}
5
}

Example 2

Input

1
{
2
"my_action": {
3
"person": {
4
"email": "kubrik@movies.com",
5
"first.name": "Stanley"
6
}
7
}
8
}

Formula

REMOVE_KEY(my_action, "person.first\.name")

Output

1
{
2
"person": {
3
"email": "kubrik@movies.com"
4
}
5
}

Sample Actions 

Transform
My Action
Transform
REMOVE_KEY

Select an action to inspect.

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Transform
My Action
Transform
REMOVE_KEY

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?