Sum
TheSumaction 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
TheSumaction contains the following fields.
Field | Description |
---|---|
List | Required. The list of what is totaled by theSumaction. |
Returned data
TheSumaction 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 aSumaction to a workflow, steps that follow this action have aSumvariable available in the variable picker. To use the data extracted by your query in following conditions or actions, selectSumin theReturned datasection of the configuration panel. For custom created variables, use theSum
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.