Skip to main content Skip to footer

Array Property Get Documentation

Version: 1.0.0 
Retrieved: 2025-10-09 15:15:12


Array Property Get

Gets one property for each object in an Source Property and creates a new array, with the values of the properties, which is then written to Target Property. If an object does not have Property to Get then null is used as its value.

Possible errors

If the value of Source Property is not an array of objects, the module will warn and will not send a message to modules connected to it.

Settings

Name Requirements Purpose Default
Source property String 1-64 in length The property containing the object to convert data
Target property String 1-64 in length The property to write the array to data
Property to Get String 1-64 in length The property to get from the objects data

Example

# Settings:
Source Property = data
Target Property = data
Property to Get = temperature

# Incoming messages:
{
  "data": [
    {
        "key": "sensor_1",
        "temperature": 31.1
    },
    {
        "key": "sensor_2",
        "temperature": 32.2
    },
    {
        "key": "sensor_3",
    },
    {
        "key": "sensor_4",
        "temperature": 34.4
    }
  ]
}

# Outgoing message:
{
  "data": [ 31.1, 32.2, null, 34.4  ]
}

NOTE:

  • Null is used as value for object without Property to Get.
  • The order of the values are kept from input.