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.

Fields

TheSumaction contains the following fields.

Fields used in the Sum action.
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 theSumobject.

Example

Example of a workflow that totals the price of orders that a customer has placed in the past week and adds a customer tag if the total is equal to or greater than 1,000.

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.

Ready to start selling with Shopify?Try it free