Hello @Srinivas Mehenderker Nath
I've made simple Logic App with performs the following actions
- Initializes a variable array with the values
"A","B","C"
- Initializes an empty variable for the output (You do not need to do this, as your output would be the SQL connection in the for each loop)
- Iterate through the array using the for each function
- Using a switch, evaluate the current item and set the empty variable value
You can download the sample code from here 265813-template.txt. This should give you an understanding of how you can use switches inside a for each loop to perform different actions based on the value. Instead of setting a variable, it could be performing the SQL connection.
I hope this helps provide you with the information you need. If it does, please make sure to mark the question as answered so it helps other people in future.
Kind regards
Alistair