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
Parameter | Type | Description |
---|---|---|
fromIdOrName | String | The ULID or name of the from unit of measure to check. |
toIdOrName | String | The ULID or name of the to unit of measure to check. |
materialId | String (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)