Sum
The Sum action adds together the total of items in a list and provides the sum value, such as the total price of several different orders.
On this page
Fields
The Sum action contains the following fields.
Field | Description |
---|---|
List | Required. The list of what is totaled by the Sum action. |
Returned data
The Sum 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 Sum action to a workflow, steps that follow this action have a Sum variable available in the variable picker. To use the data extracted by your query in following conditions or actions, select Sum in the Returned data section of the configuration panel. For custom created variables, use the Sum
object.
Example
In this example workflow, the total price of orders placed by a customer in the past week are totaled. If the total amount is equal to or greater than 1,000, then a customer tag is applied.