With switches the cases can’t be variables but instead arguments, hence why it doesn’t work when you put the name of the variable in because it sees it as a string. But it will work when you 19/04/2019 as a string as the case.
Fine
Can i have a view on the switch case if possible a screenshot and the variable mystring1 declaration as well
Or Try to mention the value in the case without double quotes
that would be the issue i guess as it should work for sure
Cheers @mz3bel
yes of course we can use variables in cases, but make sure that the type argument is changed as string in the switch activity property panel
Cheers @mz3bel
Fine usually i hope we give only in case where the expression has the variable or arguments…so that could be the issue, I tried to reproduce this issue from side, variable in the case didn’t work, only value when passed to case it works…i tried to figure out whether it is correct or not in microsoft docs as well
So i would suggest you have the expression with the variables and create n number of cases with the value that you feelwill reflect (as you said the value might change)