In logic app i have one myarray variable with values ['1','2','3']
In the Foreach connector it will come one value a a time and want to check which value it is and based on that set a value to another variable.
in c# it will be like -
foreach (item in myarray)
{
if (item == 1)
{
set variable_data = 1
}
else if (item == 2)
{
set variable_data = 2
}
else if (item == 3)
{
set variable_data = 3
}
in logic app i can able to do it like this - 
is there any better way to do it in logic app?
Aucun commentaire:
Enregistrer un commentaire