Skip to main content

Add Item to Object

Overview

Adds the given Item to the target object - inheriting the name (key) or overriding the name with the optional Key value.


Parameters

ParameterParameterValid BlocksRequired
Item to AddThe item to add to the target ObjectAny Data Process Type Block GroupYes
Key Name (optional)The name of the property the item will be added as. This can be set dynamically via text concatenation (building a path as it executes) and can even target an array item within an object (eg. `myObject[1]`)Text Process Block GroupYes
Don't overwrite existing objectSkips processing if the `Key Name`'s object already exists in the `Target Object`. When switched off, this will overwrite the existing item with the new item (default).Boolean Process Block GroupNo
Target ObjectThe DataStructure Object to which to add the itemReference Block GroupYes