title: retrieving array result in channel destination from source - mirth
body: <p>I have this javascript in mirth connect and my source connector and basically grabs everything i want. I stored some of my results in an array and placed in in an array because its much.</p>
  
  <pre><code>var gist = [];
  var list = new java.util.ArrayList();
  
      xmlMs = '&lt;html&gt;';
      xmlMs += '  &lt;body&gt;';
      xmlMs += '&lt;table&gt;';
       // content here
      xmlMs += '&lt;/table&gt;';
      xmlMs += '  &lt;/body&gt;';
      xmlMs += '&lt;/html&gt;';
      list.add(xmlMs);
  
  
      gist.push([list, new_app]);
  
  channelMap.put('try', gist);
  </code></pre>
  
  <p>What i tried to do is put the gist array in a channel map so as to be able to retrive it in the destination or destination/transformer. It complained of not recognizing the channelMap.put;</p>