applyWhen queryLogicalExpression not working

Certified Senior Developer

Hi, Im facing an issue in queryLogicalExpression where 'AND' operator is used and there are 3 query filters in it with applyWhen parameter is passed which is evaluated as false in all the 3 filters but still this expression got executed instead of ignoring it. Is the applyWhen parameter will work only for separate queryFilter and not for the filters added in logical expression? Could someone help me to understand the behaviour?

Thanks

  Discussion posts and replies are publicly visible

Parents
  • applyWhen works only on the individual a!queryFilter(), not on the entire a!queryLogicalExpression().

    If applyWhen is false, that filter is simply removed from the query. When all the filters inside the logical expression are removed, Appian still processes the queryLogicalExpression()—it just has no filters to apply, so the query runs without those conditions.

Reply
  • applyWhen works only on the individual a!queryFilter(), not on the entire a!queryLogicalExpression().

    If applyWhen is false, that filter is simply removed from the query. When all the filters inside the logical expression are removed, Appian still processes the queryLogicalExpression()—it just has no filters to apply, so the query runs without those conditions.

Children
No Data