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...
STRING VARIABLES AND ACTIONS
The objective here is to learn to create and use String variables in Power Automate Flows.
Pre-requisite
- Log In to your Power Platform or Power Automate
STEP 1: Create an Instant Cloud with a Manual trigger.
STEP 2: Click on "+New Step". Search and select "Variable".
STEP 3: Select "Initialize Variable" to create a variable, select its data type and give it default value(optional).
STEP 4: Give the variable a name, select the "String" variable type, and assign an initial value.
STEP 5: Click on "+New Step". Search and select "Append to string variable". Select the String variable created earlier and append any value.
STEP 6: Now, let's see if the value got appended. We can use another variable to store the initial string.
STEP 7: We can use "Set Variable" to set a whole different value to any of the already created variables. Select a variable from the drop-down and give a new value.
TESTING TIME
Test the flow and trigger it manually. You can expand each action to see if the actions worked.
Note:
- 'Set variable' can only be used after "Initialize variable".
__________________________________________________________________
Quick Read:
What is a variable?
It is a named storage space where any value can be stored and changed as needed.
Comments
Post a Comment