Menu
article
Returns an Article by its ID. Each article belongs to a Blog and includes content in both plain text and HTML formats, ArticleAuthor information, Comment objects, tags, and SEO data.
Use it in a workflow
- Add a step and choose the Shopify Storefront 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 {
bio
email
firstName
lastName
name
}
authorV2 {
bio
email
firstName
lastName
name
}
blog {
authors {
bio
email
firstName
lastName
name
}
handle
id
onlineStoreUrl
seo {
description
title
}
title
}
contentHtml
excerptHtml
handle
id
image {
altText
height
id
originalSrc
src
thumbhash
width
}
onlineStoreUrl
publishedAt
seo {
description
title
}
tags
title
trackingParameters
}
}
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 Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?