CreateDeltaInventoryQuantities
Rule
Changed on:
12 Aug 2025
Overview
Create an Inventory Quantity(ies) for the specified Inventory Position.| Plugin Name | Inventory Reference Module |
|---|---|
| Namespace | [[account.id]].globalinventory |
- Product Catalogue workflow
- Inventory Catalogue workflow
- Control Group workflow
- Virtual Catalogue workflow
UI Description
Create Inventory Quantities using Event attributes.
Accepts
- INVENTORY_POSITION
Actions
- This Rule produces a MutationAction that will create an Inventory Quantity(ies)
Rule parameters
This Rule has no Input parameters.
Event attributes
| Name | Type | Description | Required |
`deltas` | [`InventoryDelta`] | A list of Inventory Quantities to be created for the specified Inventory Position.See the Sub-attributes below. | Yes |
InventoryDelta Object Sub-attributes
| Name | Type | Description | Required? |
`deltaId` | `String` | The Id of the Delta Inventory Quantity | No |
`type` | `String` | The Type of the Inventory Quantity (Normally set to `DELTA`) | No |
`productRef` | `String` | The Reference of the Variant Product associated to the Inventory Position | No |
`locationRef` | `String` | The Reference of the Location associated to the Inventory Position | No |
`qty` | `Integer` | The quantity | No |
Exceptions
This Rule does not throw any validation Exceptions.
Configuration example
1{
2 "name": "[[account.id]].globalinventory.CreateDeltaInventoryQuantities",
3 "props": null
4}Detailed Technical Description
This Rule execution includes the following steps:- Parse / deserialize the
`deltas`Event attribute into a list of`InventoryDelta`Objects (outlined above). - Produce a
`MutationAction`with the`createInventoryQuantity`Mutations for each`InventoryDelta`Object.