Skip to main content

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

ParameterTypeNullableDescription
locationIdOrPathStringFalseThe location ID or path to find shift records for.
startDateMillisLongFalseStart time (ms since epoch) for the search window.
endDateMillisLongFalseEnd 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)