Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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?

...

hiddentrue

...

Answer

You can use this workaround:

Code Block
Filter.or(
	Filter.equal("approvalState","APPROVED"),
	Filter.equal("approvalState","DENIED") ,
	Filter.equal("approvalState","AUTO_APPROVED") 
	)