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.

Fields

The Count action contains the following fields.

Fields used in the Count action.
FieldDescription
ListRequired. 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

Example of a workflow that counts the amount of orders a customer has placed in the past day and sends an email if that number is equal to or greater than three.

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.

Ready to start selling with Shopify?Try it free