
Announcements
Hello everybody,
I have the following condition in my flow
@and(triggerBody()?['Active'], bool(1), not(empty(item()['Email'])))
It should return true if the 'Active' field is true AND if the 'Email' field is not empty, but upon running it returns the following error
"Unable to process template language expressions for action 'Condition' at line '1' and column '1964': 'The template language function 'and' expects all of its parameters to be booleans. Found invalid parameter types: 'Null'.'."
'Active' is a boolean field but the 'Email' field is a string. The function is just an emptyness check on the field.
Thanks for any help!
Hi Chris - is it intentional that you are passing and(val1, val2, val3) ?
Normally, there would only be two values. Also, bool(1) is true and is normally redundant in checking for truth within an "and" statement.
One other thing is 'Active' could have a value of "true" (string) or simply true (boolean) - are you sure this field is returning a boolean "true" and not a string "true"?
Elaborating more on this type will help us help you more.
Also, feel free to paste the Flow ID here so we can have someone take a look.
Thanks!
Jade