system.mes.inventory.operation.getAllInventoryOperations
Description
Retrieves all Inventory Operations records configured in the system. This function provides a complete list of all inventory operations regardless of their status or configuration.
Syntax
system.mes.inventory.operation.getAllInventoryOperations()
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
| None | - | - | This function does not take any parameters. |
Returns
Returns a list of JSON representations of inventory operation objects. Each object contains the complete configuration details of an inventory operation in the system.
Example Usage
# Retrieve all inventory operations
allInventoryOperations = system.mes.inventory.operation.getAllInventoryOperations()
# Print the number of inventory operations
print("Number of inventory operations: {0}".format(len(allInventoryOperations)))
# Iterate through each inventory operation and print basic information
for operation in allInventoryOperations:
print("ID: {0}, Name: {1}, Type: {2}".format(operation['id'], operation['name'], operation['operationType']))