title: Test action outputs length
body: <p>In my Logic App workflow, I'm trying to evaluate a condition for the previous action outputs array.</p>
  
  <p>My condition expression</p>
  
  <pre><code>@less(action('Get_items').outputs.length, 1)
  </code></pre>
  
  <p>results in error</p>
  
  <blockquote>
    <p>action 'Item_found' completed with status 'Failed' and code 'BadRequest'.</p>
  </blockquote>
  
  <p>The same happens for</p>
  
  <pre><code>@greater(action('Get_items').outputs.length, 1)
  </code></pre>
  
  <p>as well as</p>
  
  <pre><code>@empty(action('Get_items').outputs)
  </code></pre>
  
  <p>What am I doing wrong here?</p>
  
  <hr>
  
  <p>Background: The <code>action('Get_items')</code> is query retrieving items from a SPO site list using a Filter Query.<br>
  The action succeeds but the App Run Trace doesn't show any details on the outputs, in this case the expected empty array.</p>