Count
TheCountaction 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
TheCountaction contains the following fields.
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 theCount
object.
Triggers
TheCountaction can be used in any workflow.
Example
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.