system.mes.shift.getShiftRecords
Description
Retrieves all Shift Records for the given location within the specified time range.
Syntax
system.mes.shift.getShiftRecords(locationIdOrPath, startDateMillis, endDateMillis)
Parameters
Parameter | Type | Nullable | Description |
---|---|---|---|
locationIdOrPath | String | False | The location ID or path to find shift records for. |
startDateMillis | Long | False | Start time (ms since epoch) for the search window. |
endDateMillis | Long | False | End time (ms since epoch) for the search window. |
Returns
Returns a list of JSON objects representing the shift records.
Code Examples
# List records between two timestamps
records = system.mes.shift.getShiftRecords('DairyCo/Plant1/Line1', 1735689600000, 1735776000000)
print(records)