POWER AUTOMATE DESKTOP - DATABASE Pre-Requisites Power Automate Desktop Access to database Under the database action, we have only three sub actions, namely: Open SQL connection Execute SQL statement Close SQL connection Open SQL Connection The first step is to connect to the database. So, we will use the Open SQL connection action and provide a connection string to establish the connection (the connection string in the video is a sample). When the connection is successful, the connection details is stored in a variable during execution. Execute SQL statement This action can be used to execute SQL queries. Here, I am using select query and the result is stored in a variable of type datatable. Close SQL connection It is a best practice to always close the database connection once the required queries are executed. YAY! BONUS!😮 How to execute a stored procedure using database action? Stored Procedure without arguments Stored Procedure with arguments (Comma separated in...
Filter A Gallery - Power Apps PRE-REQUISITE Login to your Power Platform account. Create a blank Canvas App. A Dataverse table with data in it is required to display as a data source in the gallery. FILTER A GALLERY STEP 1: Adding a vertical gallery to the canvas and select a data source (in this example, Pizzas table). STEP 2: Modifying the gallery controls. Click on the label on the first row to change. I changed the Text property from ThisItem.'Created On' to ThisItem.Crust. Note that all types of crusts are visible in the gallery. STEP 3: Now I will use the Filter - PowerFx to filter the gallery to display only the Pizzas which are of "Thin Crust". Filter ( DATASOURCE, FORMULA1, [, FORMULA 2, ...]); Use the filter function in the Data Source/Items property of the Gallery. Here, Pizzas (a custom Dataverse table) is the Data Source and for the formula , I am checking if the text "Thin Crust" is available in the column Crust. Note that, as soon as the...