Skip to main content
Version: V2 (Ignition 8.1)

system.mes.shift.getShiftRecords

Description​

Retrieves all Shift Records for the given location within the specified time range.

Permissions​

This method requires the SHIFT.READ.GET permission.

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)