Skip to main content

system.mes.unitOfMeasure.getUnitOfMeasureConversion

Description

Retrieves a Unit Of Measure Conversions record by its ID.

Syntax

system.mes.unitOfMeasure.getUnitOfMeasureConversion(id)

Parameters

ParameterTypeDescription
idString (ULID)The ID of the unit of measure conversion to retrieve.

Returns

Returns a JSON representation of the unit of measure conversion assigned to value. Returns value is null if no unit of measure conversion is found.

NameTypeDescription
fromIdString (ULID)The unit of measure the conversion is converting from.
toIdString (ULID)The unit of measure the conversion is converting to.
conversionFactorStringThe number used to change the unit of measure from one set to the other.
materialIdString (ULID)The material associated with the unit of measure conversion.
idString (ULID)The ULID of the unit of measure conversion.
notesStringNotes related to the unit of measure conversion.
enabledBooleanIndicates if the unit of measure conversion is active and enabled.
spare1StringAdditional field for user-defined context.
spare2StringAdditional field for user-defined context.
spare3StringAdditional field for user-defined context.

Code Examples

# Retrieve a unit of measure conversion by ID
uomc = system.mes.unitOfMeasure.getUnitOfMeasureConversion('01JDMG34NA-3B7BF1C1-W89E99PW')

# Output the unit of measure conversion
print(uomc)