but I can’t get the syntax right to query both fields. The documentation only gives an example of AND being used and that doesn’t show 2 fields being validated.
You’re right in that the records don’t match the query posted
It looks like there may be an existing issue with the “OR” parameter in the V8 API:
Reportedly, a parameter gets appended for “OR DELETED = 0”
Which will return essentially all records
However, a user has submitted a fix for this:
The changes made here appear to resolve the issue
I’d given it a quick check with that change made, and results seem to be much more accurate for the “OR” condition
One thing to note though is that this change is currently not upgrade-safe, and may be overwritten by upgrades.
(As it has not yet been accepted into the main project)
If you make the changes above, are you able to see more accurate results?