So, I have a For Each Loop with the property "CurrentItem". CurrentItem returns sql columns format(Im using SQL queries within power automate desktop), with multiple fields. I want only one field from "CurrentItem", that is field "DSGrupo". How can i filter this within "Define Variable" action or inside "Execute SQL Query" Action?? I have tried creating a variable called "DescGrupo", and I have assigned this value to it: items()?['DS_Grupo']. The variable assign activity is inside for each, i also tried items(CurrentItem)?['DS_Grupo'].
In the "Execute SQL" action, I tried the following: SELECT * FROM dbo.Link WHERE DS_Grupo = "%DescGrupo%"
but it didnt work.
Prints below.
Any help is appreciated