Menu
inventoryQuantities
Search for InventoryQuantity entities.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the inventoryQuantities action (under Inventory).
- 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.
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.
{
"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}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?