Hi community members, how can we use the filters with the OR boolean logic as currently we can apply the multiple filers which behave like the AND.
Use Case: I am working in ProcFu to get the filtered records and I need to apply the Single Text filters on multiple records where if any text entered to be searched in field A then it will return the record(s) and if not found then need to check in Field B and so on. But currently there seems no way to achieve this…
On ProcFu side I am writing the filters in Before Render and passing that in Content via custom token. See below
custom_tokens.library = “”; //shows all by default
my_variables[“param”] = url_parameters[“data”]; //we received the passed paramter from Dashboard
Filters on Before Process
my_variables.fieldVal1 = json_encode([
[
"field_id" => "669132",
"field_type" => "single_text",
"match_type" => "contains",
"values" => [["value" => my_variables["param"]]],
"type" => "text"
]
if(my_variables[“param”]!= “”){
if(my_variables.fieldVal1!=“” || my_variables.fieldVal2 !=“”){
custom_tokens.library = my_variables.fieldVal1;
}
}
here if I try to print any variable then it does not return the record(s) but only the filter with value of parameter like this
[{“field_id”:“669132”,“field_type”:“single_text”,“match_type”:“contains”,“values”:[{“value”:“trailhead”}],“type”:“text”}]

