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
The Are You a Charlotte? Podcast 2026 Kristin Davis Leopard Print Sweater gives off a stylish yet relaxed vibe. I appreciate clothing pieces that make a statement without requiring a lot of accessories, and this sweater seems to do exactly that while remaining comfortable for regular wear.
Yes, applyWhen absolutely works inside a!queryLogicalExpression().
applyWhen
a!queryLogicalExpression()
The reason your query is still running instead of being ignored is : When all filters inside a logical expression evaluate to false, Appian empties the list entirely. In Appian, an empty filter list doesn’t mean "ignore this query" or "return nothing", it means "return everything." The system treats it as a blank canvas with no restrictions, which is why your query still executes and fetches data.could u give us more clarity on how and where you are applying the applywhen parameter. a code snippet would be helpful.
false
Sure, it's a nested expression where in all the queryLogicalExpression highlighted in the box contain applyWhen parameter and it is false so I've expected the top level queryLogicalExpression (highlighted in yellow) should be skipped