Skip to main content

system.mes.unitOfMeasure.getAllConversionsForMaterial

Description

Retrieves a list of all Unit Of Measure Conversions records in the system for a material.

Syntax

system.mes.unitOfMeasure.getAllConversionsForMaterial(id)

Parameters

ParameterTypeDescription
idString (ULID)The material ID to find all associated unit of measure conversions.

Returns

Returns a list of JSON objects representing all unit of measure conversions for a material.

Code Examples

# Retrieve all unit of measure for a material
all_uomcs = system.mes.unitOfMeasure.getAllConversionsForMaterial('01JCH3W58Y-5HJ7PDE9-V5MG3987')

# Output the list of unit of measure conversions
print(all_uomcs)