Hi @SuperNinja
The Switch node can be used to route the entire message to different outputs based on the different rules you create. It does not modify the structure of the message.
You need to use a Split node first. When it receives msg.payload as an Object, it will emit a new message for each key/value pair in that object. You can configure the node to copy the key value to msg.topic
.
You can then use a Switch node to check msg.topic
and add a rule for each of the topics you are getting.
By the way, please read this post on sharing code in the forum: How to share code or flow json