In this video Tutorial we look at how to query SQL tables from PowerApps and more specifically by using the infamous 'in' operator against an array! Unfortunately this is not support directly from PowerApps (yet), and SQL Queries are not supported (yet) to on-premises SQL servers so we have to use Flow to trigger stored procedures.

We will be using Flow to call the stored procedure in SQL with a string parameter, have SQL split the string parameter and join the required data, and then return the data to PowerApps. It is amazing how performant this is and the amount of records that it can safely handle in the response.

In another video we use direct query which is only available if the SQL server is directly accessible from the internet, and does not use a on premises data gateway:https://youtu.be/DII10gK715I