Menu
article
Fetch a single article by its ID.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the article action (under Article).
- Fill in the fields below, then reference the result from later steps as
{{article.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 Article($id: ID!) {
article(id: $id) {
author {
name
}
blog {
commentPolicy
createdAt
feed {
location
path
}
handle
id
tags
templateSuffix
title
updatedAt
}
body
createdAt
defaultCursor
handle
id
image {
altText
height
id
originalSrc
src
thumbhash
width
}
isPublished
publishedAt
summary
tags
templateSuffix
title
updatedAt
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"id": "string"
}
Response
Read the result with {{article.response.data.data.article}}. If the API returns errors, the step fails and they are at {{article.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?