I have a flow that has been working for a while where the switch On value is a Boolean called HirMgrComplete. I had the values in the switch as Yes and No respectively as the TrueText property is equal to Yes and the FalseText property is equal to No in the PowerApp. It worked for several months but I am now getting this error:
I have tried true and false as well as 1 and 0. When I try true and false I get the following error:
"The template validation failed: 'The template action 'Switch' at line'1' and column '5463' is not valid: the value 'True' specified for 'case' property in switch case 'Hir_Manager_Complete_Yes' is not allowed. Only values of types string, number or a '@parameters()' expression that evaluates to a number or a string is allowed.'."
Any help would be very much appreciated.
@abm I will give this a try but I am extremely curious as to why it has been working as is for months and months.
Hi @GoGorilla
Workaround is convert the boolean value to 1 or 0 using an IF expression. Please see below.
Above my expression is as follows
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,081
Most Valuable Professional