Skip to main content

system.mes.material.getPropertyValue

Description

Retrieves a Material Property Values record given its ID.

Syntax

system.mes.material.getPropertyValue(id)

Parameters

ParameterTypeDescription
idString (ULID)The ULID of the material property value.

Returns

Returns a JSON representation of the material property value. Returns nothing if no material property value is found.

NameTypeDescription
materialIdString (ULID)The ULID of the material.
materialPropertyIdString (ULID)The ULID of the material property.
dataTypeStringThe data type of the property value. Must be the same as the data type of the property.
valueMixedThe value assigned to the property value if none is provided. The type is mixed as it depends on what dataType is.
idString (ULID)The ULID of the material property value.
notesStringNotes related to the material property value.
enabledBooleanIndicates if the property value 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 material property value by its ID
property_value = system.mes.material.getPropertyValue('01JRDP4APW-5D56ZQ8C-8949XKYT')

# Output the material property value
print(property_value)