title: How to stuff a result of a query into a variable and use it another query in a logic app
body: <p>I haven't used logic apps a lot, my boss is having trouble stuffing the results of one query into a variable and then using that variable in another query.</p>
  <p>Basically, all he wants to do is get a list of of Id's returned from the first query and use that list in the second.</p>
  <p>Here is a picture of what his logic app looks like:
  <a href="https://i.stack.imgur.com/ahkqF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ahkqF.png" alt="enter image description here" /></a></p>
  <p>You can see at the end of the second query he wants to check if the id is in the list or not. He's out for the day and I'm not sure if that variable is even receiving the list of id's successfully, but is there anything from the picture that you can tell that needs to be corrected? Or any suggestions that he could try, to achieve what he's trying to achieve?</p>