I'm trying to used List rows to get the active rows in a Dataverse table, therefore I tried the following filter expression:
statecode eq 'Active'.
It was without surprise that I got this error message:
"A binary operator with incompatible types was detected. Found operand types 'Edm.Int32' and 'Edm.String' for operator kind 'Equal'."
In fact, choice values can not be referred to as strings, but as integers instead.
Being unable to find a document explaining how choice values are numbered, I throw a guess that those start from 0 and I could get my active rows with "statecode eq 0".
My question is: is this the only way to refer to choice values?
I've tried "statecode eq Active" but then "Active" is interpreted as a non-existing column.
I suppose that this has something to do with multilingual feature, but referring to choices as ints is far from intuitive and highly cumbersome regarding to maintenance ☹️.