I would like the equivalent of
select * from APIRequests
where (processed == false or processed is null)
and (siteid = current.siteid or current.siteid is null)
below is as close as I could get with BQL, but still missing one or statement:
var cmd = new PXSelect<APIRequests, Where<
APIRequests.siteID, Equal<Current<APIRequestsFilter.siteID>>,
And
<Where<APIRequests.processed, Equal<False>, Or<APIRequests.processed, IsNull>>>
>, OrderBy<Asc<APIRequests.date>>>(this);