title: Kusto loop array with sub query
body: <p>I am trying to define an array and loop through it looking up traces for where the message contains element in my array. Is it possible to do this? For example:</p>
  <pre><code>let myIds = datatable (name: string)
  [
   &quot;111&quot;,
   &quot;222&quot;,
   &quot;333&quot;,
  ];
  
  forach (id in myIds)
  {
    traces
    | where message contains id
  }
  </code></pre>
  <p>I know this isn't the right syntax above but hopefully it explains what I am trying to achieve. In a nutshell, loop through an array and perform a lookup in my logs (specifically traces).</p>