@josh51 Glad to hear that’s working for you! I’ll update this thread once I know more about the node / PAC behavior we’re seeing here – hopefully we can find a more permanent solution soon.
Regarding the return statement, here is a great page from the Node-RED documentation site that I reference all the time: nodered.org/docs/user-guide/writing-functions
Returning multiple messages is really easy, if you want to send them at the same time you can increase the number of outputs of the function node and then return [ msg1, msg2, ... ];
or use the node.send(msg)
method to send multiple messages asynchronously, like I did with the batch code.