GetLaborStartTimeForAShift Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetLaborStartTimeForAShift() method retrieves the first labor start time for the specified entity and shift. The results can be filtered by a user ID and a previous shift. If a user is specified, the labor start time of the shift of the user on the specified entity is retrieved. If no user is specified, the first labor start time of the last active shift on the specified entity is retrieved.
'Declaration
Public Shared Function GetLaborStartTimeForAShift( _
ByVal UserId As Object, _
ByVal EntId As Object, _
ByVal ShiftStartTime As Object, _
ByVal UsePreviousShift As Object _
) As String
public static string GetLaborStartTimeForAShift(
object UserId,
object EntId,
object ShiftStartTime,
object UsePreviousShift
)
Parameters
- UserId
- Optional. Holds the user ID by which to filter the labor start time result.
- EntId
- Required. Holds the ID of the entity whose labor start time is being retrieved.
- ShiftStartTime
- Optional. Holds a start time for the previous shift by which to filter the labor start time result.
- UsePreviousShift
Optional. Holds a flag that, if set to true, specifies that the start time of the shift before the last shift can be used to filter the labor start time result.
Return Value
Returns a string that contains the labor start time, if one is found.