I am struggling with the AND OR condition. I have a column ‘ApprovalStaus’ which is set as a choice and dropdown (Pending, Approved and rejected), this dropdown gets updated via an approval flow, I then have a column ‘FAQ’ set to single line text.
I am trying to set up a condition that if ApprovalStaus equals to Approved AND FAQ is NOT empty (not null) OR ApprovalStatu equals Rejected the condition is True
I have set the below:
But I receive this error:
Unable to process template language expressions for action 'Condition' at line '1' and column '13132': 'The template language function 'contains' expects parameters of matching types: a dictionary and a key (string), an array and a value (object), or a string and a substring. The provided types 'String' and 'Null' are incompatible. Please see https://aka.ms/logicexpressions#contains for usage details.'.
I have also tried:
And get this error:
Unable to process template language expressions for action 'Condition' at line '1' and column '13133': 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Boolean'.'.
Also using the empty syntax I don't get anywhere
not(equals(triggerOutputs()?['body/FAQ'], empty))
What am I doing wrong?