×
Built-In: Split Array Node
Nevelex Labs Logo

Overview

The NL Split Array node splits an array of elements in the incoming message into individual output messages.

Functionality

The Split Array node exposes the following functionality:

  • Split an array into individual messages via the NL Split Array node.

Flow Node

Utility Node for iterating over an Array of zero or more elements in the incoming message and splitting the array into individual messages with the Output Field set to the current array element. This node is useful for operating on an array of URLs, IPs, hashes, or any other object. When a message arrives, this node will process each individual element in the Array. Each element initiates a new message sent on this node's output. Each output message is part of the same message associated with the incident, but is processed separately.
Property
Description

Name

The display name of the node within the flows.


Array

If the Array element is not actually a JSON array, the message is passed through without iterating and the designated Array element is copied to the Output Field location. If the Array element does not exist or is an empty array, the message is filtered out with an error logged in the message audits.


Output Field

The default Output Field is element.

Learn More

JSON Message Format

Success

The italicized, green text is sent out by the NL Split Array node. In this example, the node is configured to traverse the testArray and send a message out for each element of the array.

"payload": {
    "testArray": [
      "1",
      "2",
      "3",
      "4"
    ],
    "element": "1"
}
"payload": {
    "testArray": [
      "1",
      "2",
      "3",
      "4"
    ],
    "element": "2"
}
"payload": {
    "testArray": [
      "1",
      "2",
      "3",
      "4"
    ],
    "element": "3"
}
"payload": {
    "testArray": [
      "1",
      "2",
      "3",
      "4"
    ],
    "element": "4"
}
Nevelex Labs, Main Office

Metro Office Park
2950 Metro Drive, Suite 104
Bloomington, MN 55425
Phone: +1 952-500-8921

©Nevelex Labs, LLC. 2018-2024, All Rights Reserved.

EULA