title: How to append array data to array variable in logic app?
body: <p>I'm calling API using HTTP connector getting result array data. and used until loop. so every time i will get some records into result array.</p>
  
  <p>Now I want to append all records so that i will those all.</p>
  
  <p>Like 1st time i got 2 records like below and 2nd time 1 then I want to append so that it will be 3 total.</p>
  
  <p>1st iteration result -</p>
  
  <pre><code>"results":[
  {"id":"2","name":"t1"},{"id":"3","name":"t4"}
  ]
  </code></pre>
  
  <p>2nd iteration result -</p>
  
  <pre><code>"results":[
    {"id":"66","name":"i7"}]
  </code></pre>
  
  <p>I want to append all data so that final result will be like - </p>
  
  <pre><code>[{"id":"2","name":"t1"},{"id":"3","name":"t4"}, {"id":"66","name":"i7"}]
  </code></pre>
  
  <p>instead of <code>foreach</code> I tried using <code>append array variable</code> but it throws below error -</p>
  
  <p>its a type of array need to be string to append.
  <a href="https://i.stack.imgur.com/af8vn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/af8vn.png" alt="enter image description here"></a></p>
  
  <p>I can able to achieve it using foreach but it does not make sense just to add values use foreach instead if we found any way to directly add array it will be great.
  <a href="https://i.stack.imgur.com/IvO3H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IvO3H.png" alt="enter image description here"></a></p>