Count operators
How to use Count operators
Overviews
The following are the available counts operators in AQS.
Count operator
Example of how to use the Count operator
The following example illustrates a query that could be used in a workflow to send an email when the number of jobs is greater than 10.
You can also add an And logical operator with an Equals conditional operator related to the task status, this allows you to refine the query.
{
"type": "Query",
"properties": {
"collectionCode": [
"Live"
],
"dodiCode": "designInterfaces_jobs"
},
"children": [
{
"type": "GreaterThan",
"children": [
{
"type": "Count",
"children": [
{
"type": "ItemProperty",
"properties": {
"itemPropertyName": "itemId"
}
}
]
},
{
"type": "Number",
"properties": {
"value": [
10
]
}
}
]
}
]
}