得到订单data

In workflows that use order data, you can use the得到订单dataaction to retrieve order information from your store. You can use this action in any workflow, including theScheduled timetrigger. In a workflow that uses theScheduled timetrigger, the workflow starts at a time that you've specified, rather than as a result of an event. Because there is no specific event in your store or from an app that starts the workflow, there is no data automatically included.

Fields

The得到订单dataaction contains the following fields.

Fields used in the Get order data action.
Field Description
Sort data by Required. The parameters by which the data returned by the search query is sorted.
Maximum number of orders Required. The maximum amount of orders that can be returned by the search query that you select.
Select a query to filter data Required. The search query that obtains the data to be used in the workflow. SelectAdvancedto create your ownorders queryby using Shopify's APIsearch syntax.
Edit query The search query that's used to select orders. This query can be edited to customize the results.

Returned data

The得到订单dataaction itself doesn't take any direct action in your store. Instead, it extracts data from your store based on your query, and makes this data available for use in subsequent steps in your workflow.

When you add a得到订单dataaction to a workflow, steps that follow this action have a得到订单datavariable available in the variable picker. To use the data extracted by your query in following conditions or actions, select得到订单datain theReturned datasection of the configuration panel. For custom created variables,use thegetOrderDataobject.

Triggers

The得到订单dataaction can be used in any workflow.

Example

Example of a workflow that repeats once a week, checks orders created in the past week, and adds customer tags to those that place orders increasing their lifetime spending to 100 USD or greater.

In this example workflow, a workflow is scheduled to run every Sunday at 9:00 am. The得到订单dataaction is used to collect data for orders created in the last week. If the customers associated with the orders have a lifetime spend amount of over 100 USD, then theGoldtag is applied to the customer.

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