system.mes.material.getAllMaterialReasonCodes
Description
Retrieves a list of all Material Reason Codes records in the system.
Syntax
system.mes.material.getAllMaterialReasonCodes()
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
| None | - | - | This method does not take any parameters. |
Returns
Returns a list of JSON objects representing all material reason codes.
Code Examples
# Retrieve all materials
allMaterialReasonCodes = system.mes.material.getAllMaterialReasonCodes()
# Output the list of materials
print(allMaterialReasonCodes)