title: Injecting many payloads at once (node-red)
body: <p>I have a problem. I'm new to node red, I want to inject many payloads with different topics at once. I wanted to do it with function like in first node. It's function looks like so:</p>
  
  <pre><code>msg.topic="ns=2;s=Target01.Nazwa.Nazwa[0];datatype=String"
  msg.payload=global.get("nazwa")
  return msg
  msg.topic="ns=2;s=Target01.Nazwa.Nazwa[1];datatype=String"
  msg.payload=global.get("nazwa2")
  return msg
  ...
  msg.topic="ns=2;s=Target01.Nazwa.Nazwa[9];datatype=String"
  msg.payload=global.get("nazwa9")
  return msg
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/b8hAn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b8hAn.png" alt="enter image description here"></a></p>
  
  <p>However it doesn't work. The 2nd node is working but in total I would have like 150+ blocks connected to OPC UA Client block. So my question is: does anyone know if there's a way to inject multiple payloads with different topics, favorabily with function, instead of doing it one by one with inject blocks?</p>