GetPrevShiftStartTime Method (Labor)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetPrevShiftStartTime() method retrieves a previous shift start time for the specified entity. The results can be filtered by a user ID. If a user is specified, the start time of the shift of the user on the specified entity is retrieved. If no user is specified, the start time of the last active shift on the specified entity is retrieved.
Parameters
- UserId
- Optional. Holdsthe user ID by which to filter the shift start time result.
- EntId
- Required. Holds the ID of the entity whose previous shift start time is being retrieved.
- ShiftStartTime
- Optional. Holds a time by which to filter the previous shift start time result.
Return Value
Returns a string that contains the previous shift start time, if one is
found.