younifyd
Menu

inventoryQuantities

Search for InventoryQuantity entities.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the inventoryQuantities action (under Inventory).
  3. Fill in the fields below, then reference the result from later steps as {{inventoryquantities.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 InventoryQuantities($after: String, $before: String, $catalogue: InventoryCatalogueKey, $condition: [String], $createdOn: DateRange, $expectedOn: DateRange, $first: Int, $last: Int, $quantity: [Int], $ref: [String!], $status: [String], $storageAreaRef: [String], $type: [String!], $updatedOn: DateRange, $workflowRef: [String!], $workflowVersion: [Int!]) {
  inventoryQuantities(
    after: $after
    before: $before
    catalogue: $catalogue
    condition: $condition
    createdOn: $createdOn
    expectedOn: $expectedOn
    first: $first
    last: $last
    quantity: $quantity
    ref: $ref
    status: $status
    storageAreaRef: $storageAreaRef
    type: $type
    updatedOn: $updatedOn
    workflowRef: $workflowRef
    workflowVersion: $workflowVersion
  ) {
    edges {
      cursor
      node {
        attributes
        catalogue
        condition
        createdOn
        expectedOn
        id
        position
        quantity
        ref
        status
        storageAreaRef
        type
        updatedOn
        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

catalogueobject
refstringrequired
conditionarray<string>

The condition of the Inventory Quantity value. The platform does not enforce any values here. Examples could include `NEW`, `USED`, or `DAMAGED`

createdOnobject
fromstring
tostring
expectedOnobject
fromstring
tostring
firstnumber

Returns the first n elements from the list

lastnumber

Returns the last n elements from the list

quantityarray<number>

The actual amount of this specific Quantity record

refarray<string>

The unique reference identifier for the Inventory Quantity

statusarray<string>
storageAreaRefarray<string>

A reference to the Storage Area where this inventory is kept

typearray<string>

The type field can be used to differentiate between Inventory Quantity workflows. Example types include `LAST_ON_HAND`, `RESERVED`, `EXPECTED`, and `ADJUSTMENT`.

updatedOnobject
fromstring
tostring
workflowRefarray<string>
workflowVersionarray<number>
json
{
  "after": "string",
  "before": "string",
  "catalogue": {
    "ref": "string"
  },
  "condition": [
    "string"
  ],
  "createdOn": {
    "from": "string",
    "to": "string"
  },
  "expectedOn": {
    "from": "string",
    "to": "string"
  },
  "first": 0,
  "last": 0,
  "quantity": [
    0
  ],
  "ref": [
    "string"
  ],
  "status": [
    "string"
  ],
  "storageAreaRef": [
    "string"
  ]
}

Response

Read the result with {{inventoryquantities.response.data.data.inventoryQuantities}}. If the API returns errors, the step fails and they are at {{inventoryquantities.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.