Count
The Count action counts the number of items in a list and provides that value, such as the number of line items in an order.
On this page
Fields
The Count action contains the following fields.
Field | Description |
---|---|
List | Required. The list of what is counted by the Count action. |
Returned data
The Count action itself doesn't take any direct action in your store. Instead, it calculates data from your store and makes this data available for use in subsequent steps in your workflow.
When you add a Count action to a workflow, steps that follow this action have a Count variable available in the variable picker. To use the data extracted by your query in following conditions or actions, select Count in the Returned data section of the configuration panel. For custom created variables, use the Count
object.
Triggers
The Count action can be used in any workflow.
Example
In this example workflow, the Count action counts the number of orders placed by a customer in the last day. If the amount of orders is equal to or greater than three, then an internal email is sent.