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.
The Count action contains the following fields.
|List||Required. The list of what is counted by the Count action.|
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
The Count action can be used in any workflow.
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.