Menu
shopifyqlQuery
Executes a ShopifyQL query to analyze store data and returns results in a tabular format. The response includes column metadata with names, data types, and display names, along with the actual data rows.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the shopifyqlQuery action (under Shopifyql).
- Fill in the fields below, then reference the result from later steps as
{{shopifyqlquery.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query ShopifyqlQuery($query: String!) {
shopifyqlQuery(query: $query) {
parseErrors
tableData {
columns {
columnOrigin
dataType
displayName
dynamicColumnMetadata
name
shortDisplayName
subType
}
rowMetadata {
nullCellTranslations
rawResourceIds
topNRemainderColumnNames
}
rows
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"query": "string"
}
Response
Read the result with {{shopifyqlquery.response.data.data.shopifyqlQuery}}. If the API returns errors, the step fails and they are at {{shopifyqlquery.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?