system.mes.location.getLocationsByPartialPath
Description
Retrieves all Locations records with paths that contain the specified partial path.
Syntax
system.mes.location.getLocationsByPartialPath('partial/path/example')
Parameters
Parameter | Type | Nullable | Description |
---|---|---|---|
path | String | False | The partial path to search for in locations. |
Returns
Returns a list of JSON objects representing all locations with paths that include the given partial path.
Code Examples
# Retrieve locations by partial path
matching_locations = system.mes.location.getLocationsByPartialPath('DairyCo')
# Output the list of matching locations
print(matching_locations)