In this case I tried to add a filter like this but...
# general
b
In this case I tried to add a filter like this but didn't work
Copy code
search.createFilter({
    name:"custrecord_out_rec_id.custrecord_out_field_id",
     operator: "anyof",
     values:6989
})
b
there are 2 different ways to create a filter, filter objects or filter expressions
filter expressions are what you see from the search export tool, you can also see what those look like by loading the search and using Search.filterExpression
what you are using here is a filter object, which you can also see using Search.filters
search filters require you to use the separate join parameter