Count

TheCountaction counts the number of items in a list and provides that value, such as the number of line items in an order.

Fields

TheCountaction contains the following fields.

Fields used in the Count action.
Field 描述
List Required. The list of what is counted by theCountaction.

Returned data

TheCountaction 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 aCountaction to a workflow, steps that follow this action have aCountvariable available in the variable picker. To use the data extracted by your query in following conditions or actions, selectCountin theReturned datasection of the configuration panel. For custom created variables, use theCountobject.

Triggers

TheCountaction 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, theCountaction 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.

Shopify准备OB欧宝娱乐APP开始销售?Try it free