Menu
articles
Search for Article entities.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the articles action (under Articles).
- Fill in the fields below, then reference the result from later steps as
{{articles.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 Articles($after: String, $before: String, $createdOn: DateRange, $description: [String], $first: Int, $height: [Float!], $last: Int, $length: [Float!], $name: [String], $quantity: [Int], $ref: [String], $status: [String], $type: [String!], $updatedOn: DateRange, $weight: [Float!], $width: [Float!], $workflowRef: [String!], $workflowVersion: [Int!]) {
articles(
after: $after
before: $before
createdOn: $createdOn
description: $description
first: $first
height: $height
last: $last
length: $length
name: $name
quantity: $quantity
ref: $ref
status: $status
type: $type
updatedOn: $updatedOn
weight: $weight
width: $width
workflowRef: $workflowRef
workflowVersion: $workflowVersion
) {
edges {
cursor
node {
attributes
createdOn
description
height
id
length
name
quantity
ref
status
storageArea
type
updatedOn
weight
width
workflowRef
workflowVersion
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"after": "string",
"before": "string",
"createdOn": {
"from": "string",
"to": "string"
},
"description": [
"string"
],
"first": 0,
"height": [
0
],
"last": 0,
"length": [
0
],
"name": [
"string"
],
"quantity": [
0
],
"ref": [
"string"
],
"status": [
"string"
]
}
Response
Read the result with {{articles.response.data.data.articles}}. If the API returns errors, the step fails and they are at {{articles.response.data.errors}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?