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...
LOOKUP FUNCTION - CANVAS APP
PRE-REQUISITE
- Login to Power Apps
- Use a Dataverse table for this example
BUILDING THE APP
STEP 1: Create a Canvas app. Add a gallery and a label.
STEP 2: Make the "Users" table as the data source of the Gallery.
STEP 3: LookUp function finds the first record that matches a formula.
In this example, I use lookup to find the full name of the user who is a "HR Manager".
LookUp(Users, Title = "HR Manager").'Full Name'
OR
LookUp(Users, Title = "HR Manager", 'Full Name')
We use the gallery to see if Wes is the HR Manager. (To verify if the Look-up function gave the correct output)
Note: We used the LookUp function within a label, because it returns 1 record and we're displaying 1 column of the returned record. That's a single value.
Do try it for other tables and columns!
Please leave a comment if you have queries.
Comments
Post a Comment