Skip to main content

system.mes.unitOfMeasure.doesConversionExist

Checks if a Unit Of Measure Conversions object with the given parameters exists.

Syntax

system.mes.unitOfMeasure.doesConversionExist(fromIdOrName, toIdOrName, materialId)

Parameters

ParameterTypeDescription
fromIdOrNameStringThe ULID or name of the from unit of measure to check.
toIdOrNameStringThe ULID or name of the to unit of measure to check.
materialIdString (ULID)The ULID of the material associated with the conversion.

Returns

Returns a boolean indicating whether the unit of measure conversion exists.

Code Examples

# Check whether the unit of measure conversion exists
uomc_exists = system.mes.unitOfMeasure.doesConversionExist('Pound', 'Kilogram', '01JCH3TP3Y-4B080WHN-MSR8RVP5')

# Output the boolean result
print(uomc_exists)