system.mes.location.setPropertyValue
Description
Updates the value of a Location Property Values record given a location ID or path and a property ID or name.
Syntax
system.mes.location.setPropertyValue(locationIdOrPath, propertyIdOrName, value)
Parameters
Parameter | Type | Description |
---|---|---|
locationIdOrPath | String | The ULID or path of the location. |
propertyIdOrName | String | The ULID or name of the property for which the value is retrieved. |
value | Mixed | The value assigned to the property value if none is provided. The type is mixed as it depends on what the data type of the property. |
Returns
Returns a JSON representation of the updated location property value.
Code Examples
# Update the value of a location property value
updated_property_value = system.mes.location.setPropertyValue('DairyCo', 'Cows', 200)
# Output the JSON representation of the updated location property value
print(updated_property_value)