title: Logic App - Create CSV table from JSON output
body: <p>I've created a Runbook which starts or shutsdown VMs and then spits the result in a JSON output. I'm having trouble trying to figure out how to take that output and use it in a 'Create CSV Table' within my Logic App.</p>
  
  <p>Output (which is exactly how it comes into the Logic App):</p>
  
  <pre><code>[
      {
          'VM':  'MyVM2',
          'Success':  true,
          'PSComputerName':  'localhost',
          'PSShowComputerName':  true,
          'PSSourceJobInstanceId':  '286eeccb-c7f6-4afd-a734-7f4e837ffdac'
      },
      {
          'VM':  'MyVM1',
          'Success':  true,
          'PSComputerName':  'localhost',
          'PSShowComputerName':  true,
          'PSSourceJobInstanceId':  '286eeccb-c7f6-4afd-a734-7f4e837ffdac'
      }
  ]
  </code></pre>
  
  <p>My Logic App flow:
  <a href="https://i.stack.imgur.com/FdZVs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FdZVs.jpg" alt="enter image description here"></a></p>
  
  <p>However I am prompted with the following error when it runs because the ‘Create CSV Table’ doesn’t like the input:
  <a href="https://i.stack.imgur.com/v7WPb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v7WPb.jpg" alt="enter image description here"></a></p>
  
  <p>I’m sure it’s just some sort of formatting that needs to be changed, but I am unsure how to do it. I'm new to learning code, and as far as I can tell the output is an Array of Objects, but the error is asking for an Array. Perhaps some sort of limitation?</p>
  
  <p>I'm aware of using Pars JSON, <strong>however</strong> the results will not always be the same. Sometimes I will have 2 results in the output, or sometimes I will have 20 results. Therefore if I define the schema in Parse JSON for only 2 results, it will omit the rest because they are not defined.</p>