system.mes.shift.getShiftStatus
Description
Retrieves the status of a Shifts. It evaluates the most recent shift record to determine the current status.
Syntax
system.mes.shift.getShiftStatus(id)
Parameters
Parameter | Type | Nullable | Description |
---|---|---|---|
id | String (ULID) | False | The ID of the shift to inspect. |
Returns
Returns a String
(Enum) representing the status. Possible values include: IDLE
, ACTIVE
, CLOSED
, VERIFIED
.
Code Examples
status = system.mes.shift.getShiftStatus('01JAP8RJBN-8ZTPXSGY-J9GSDPE1')
print(status)