Get subscription contract data

In workflows that use subscription contract data, you can use theGet subscription contract dataaction to retrieve subscription contract 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

TheGet subscription contract dataaction contains the following fields.

Fields used in the Get subscription contract data action.
Field Description
Maximum number of subscription contracts Required. The maximum amount of subscription contracts 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 ownsubscription contracts queryby using Shopify's APIsearch syntax.
Edit query The search query that's used to select subscription contracts. This query can be edited to customize the results.

Returned data

TheGet subscription contract 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 aGet subscription contract dataaction to a workflow, steps that follow this action have aGet subscription contract datavariable available in the variable picker. To use the data extracted by your query in following conditions or actions, selectGet subscription contract datain theReturned datasection of the configuration panel. For custom created variables,use thegetSubscriptionContractDataobject.

Triggers

TheGet subscription contract dataaction can be used in any workflow.

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