A custom qualification that can be constructed similar to a SQL WHERE clause that allows building complex expressions using logical and relational operators against submission properties and field values.
In order to execute a submission search, there must be one or more index definitions that correspond to the specified submission properties and field values.
Only a single property or field can be specified using a range subexpression.
-
AND
Returns boolean true if and only if both expressions are true
Example: expression1 AND expression2
-
OR
Returns boolean true if at least one expression is true
Example: expression1 OR expression2
-
IN equality subexpression
Returns boolean true if the key matches one of the list values
Example: key IN ("Value One", "Value Two", "Value Three")
-
= equality subexpression
Returns boolean true if the key is exactly equal to the value.
Example: key = "Test Value"
-
BETWEEN range subexpression
left side is between two values - first value is inclusive, second value is exclusive
Example: key BETWEEN ("Value One", "Value Two")
-
=* range subexpression
starts with
-
> range subexpression
greater than
-
>= range subexpression
greater than or equal
-
< range subexpression
less than
-
<= range subexpression
less than or equal
-
null
Means no value
Example: key = null
-
(
Left parentheses for logic grouping, MUST be used with right parentheses
Example: (key = "Value 1" OR key = "Value Two")
-
)
Right parentheses for logic grouping, MUST be used with left parentheses
Example: (key = "Value 1" OR key = "Value Two")
These are the items that can be specified in the query subexpression.
-
closedBy
Username that closed the submission
-
coreState
The value of the core state the submission is in ("Draft", "Submitted", or "Closed")
-
createdBy
Username that created the submission
-
handle
A "nearly-unique" identifier for the submission
-
sessionToken
Used for anonymous submissions
-
submittedBy
Username that submitted the submission
-
type
The type of form the submission is associated to
-
updatedBy
Username that last updated the submission
-
values
Any field that is implemented by the Form.
Example: the field named 'Approver' would be referred as values[Approver]
(values[Requested By] = "john.doe" OR values[Requested For] = "john.doe")
AND values[Status] IN ("Pending Assignment", "On Hold")