Skip to main content

system.mes.material.doesMaterialExist

Description

Checks if a Materials object with the given ID or path exists.

Permissions

This method requires the MATERIAL.READ.GET permission.

Syntax

system.mes.material.doesMaterialExist(idOrPath)

Parameters

ParameterTypeNullableDescription
idOrPathStringFalseThe ULID or path of the material to check.

Returns

Returns a boolean indicating whether the material exists.

Code Examples

# Check whether the material exists
materialExists = system.mes.material.doesMaterialExist('IRB/5391537510212')

# Output the boolean result
print(materialExists)