This package provides two custom nodes for Node-RED.
Splits the input message based on any specified property, not limited to msg.payload
.
Compares two lists and returns the differences between them. It takes two input lists:
listA
: List of current state (Users we would like to have on the destination group we create).listB
: List of destination group.
This node returns two lists as outputs:
create
: Contains all users that are inlistA
but not inlistB
, indicating that they need to be created on the destination platform.remove
: Contains all users that are inlistB
but not inlistA
, indicating that they need to be deleted from the destination platform.
Both create
and remove
lists will be available as properties (msg.create
and msg.remove
) in the node's output message.
-
Install the Node-Red-utils-nodes package using npm: npm i node-red-utils-nodes
-
In your Node-RED flow, you will find the
any_split
andcustom_diff
nodes under the "Authomize utils" category in the Node-RED palette. -
Drag and drop the desired node into your flow and configure its properties as required.
-
Connect the input and output nodes to complete your flow.
Contributions, bug reports, and feature requests are welcome!
This project is licensed under the MIT License.