Question
In statements like api.find("PGI", startRow, Filter.in("approvalState", "APPROVED", "DENIED", "AUTO_APPROVED"))
, the
...
filter conditions are all cumulative and added as AND. Is there
...
an option to add them as OR?
...
hidden | true |
---|
...
Answer
You can use this workaround:
Code Block |
---|
Filter.or(
Filter.equal("approvalState","APPROVED"),
Filter.equal("approvalState","DENIED") ,
Filter.equal("approvalState","AUTO_APPROVED")
) |