Invoke datasource $filter variable

Quick question:

Is it possible to change the Value of the filter based on a condition?

For instance LocationOverride is true or false, when it's true the filter would be null. Do I need 2 invokes one for each condition or is it possible to do it in the filter value?

What's the syntax if it can be combined?

Hi @kest874,

Maybe you can use indeed two invokes with different conditions.

Hi @kest874 ,
You may also try using ternary operator LocationID == ${LocationID==null ? true : LocationID}

2 Likes

Ternary operator indeed works.