Rick Goodrow
02/23/2026, 9:47 PMfilters: [["mainline","is","T"],"AND",["custbody_uv_installation_site","anyof",6942]]
I get 3 results (expected), internalid & type as columns.
[{"internalid":{"value":345847},"type":{"value":"Estimate"}},{"internalid":{"value":348608},"type":{"value":"Estimate"}},{"internalid":{"value":348610},"type":{"value":"Estimate"}}]
however, if I run the same search with the addition of a filter for type (using search.Type.ESTIMATE as the typeof string)
filters: [["type","anyof",["estimate"]],"AND",["mainline","is","T"],"AND",["custbody_uv_installation_site","anyof",6942]]
I get 0 results. What am I missing?Anthony OConnor
02/23/2026, 10:00 PMAnthony OConnor
02/23/2026, 10:02 PMRick Goodrow
02/23/2026, 10:06 PMcreece
02/23/2026, 10:12 PMRick Goodrow
02/23/2026, 10:13 PMcreece
02/23/2026, 10:13 PMRick Goodrow
02/23/2026, 10:15 PMsearch.Type.TRANSACTION. I didn't know that when using as filters, you couldn't use the same type enumRick Goodrow
02/23/2026, 10:15 PMcreece
02/23/2026, 10:16 PM[
[type is estimate],
"OR"
[type is opportunity]
]Anthony OConnor
02/23/2026, 10:16 PMRick Goodrow
02/23/2026, 10:16 PMcreece
02/23/2026, 10:19 PMRick Goodrow
02/23/2026, 11:36 PMsearch.Type.OPPORTUNITY and record.Type.OPPORTUNITY. Both are the string opportunity. I remember finding a website that had the IDs, and made my own enum 'cause I couldn't find a native module that had an appropriate enum.NickSuite
02/25/2026, 1:39 AMfilters:
[
["type","anyof","Estimate"],
"AND",
["mainline","is","T"]
]
and see what happens.