Skip to main content

system.mes.shift.getShiftRecordStatus

Description

Retrieves the status of a Shift Records.

Permissions

This method requires the SHIFT.READ.GET permission.

Syntax

system.mes.shift.getShiftRecordStatus(id)

Parameters

ParameterTypeNullableDescription
idString (ULID)FalseThe ID of the shift record to check.

Returns

Returns a String (Enum) representing the status. Possible values include: IDLE, ACTIVE, CLOSED, VERIFIED.

Code Examples

status = system.mes.shift.getShiftRecordStatus('01JAP8RJBN-8ZTPXSGY-J9GSDPE1')
print(status)