younifyd
Menu

articles

Search for Article entities.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the articles action (under Articles).
  3. 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.

graphql
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.

afterstring

Returns the elements in the list that come after the specified global ID

beforestring

Returns the elements in the list that come before the specified global ID

createdOnobject
fromstring
tostring
descriptionarray<string>

Description

firstnumber

Returns the first n elements from the list

heightarray<number>

Height

lastnumber

Returns the last n elements from the list

lengtharray<number>

Length

namearray<string>

Name

quantityarray<number>

Quantity

refarray<string>

The unique article reference provided by the retailer

statusarray<string>
typearray<string>
updatedOnobject
fromstring
tostring
weightarray<number>

Weight

widtharray<number>

Width

workflowRefarray<string>
workflowVersionarray<number>
json
{
  "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}}.

edgesarray<object>
cursorobject
nodeobject
pageInfoobject
hasNextPageboolean
hasPreviousPageboolean

Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.

Was this page helpful?