Skip to main content

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

ParameterTypeNullableDescription
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
all_inventory_operations = system.mes.inventory.operation.getAllInventoryOperations()

# Print the number of inventory operations
print("Number of inventory operations: {0}".format(len(all_inventory_operations)))

# Iterate through each inventory operation and print basic information
for operation in all_inventory_operations:
print("ID: {0}, Name: {1}, Type: {2}".format(operation['id'], operation['name'], operation['operationType']))