UpdateEntShift Method
- Last UpdatedNov 06, 2025
- 2 minute read
The UpdateEntShift() method updates the specified shift for the entity that is identified by the ent ID input parameter.
Note: This method is no longer supported. Use the corresponding method in the Stateless API ShiftSchedule class.
'Declaration
<ObsoleteAttribute("Shifts.UpdateEntShift method is no longer supported. Please call the corresponding updated method.")>
Public Shared Function UpdateEntShift( _
ByVal entID As Long, _
ByVal startDay As Long, _
ByVal shiftID As Long, _
ByVal shiftStart As Date, _
ByVal shiftEnd As Date, _
ByVal break1Start As Fact.Common.DBDateTime, _
ByVal break1End As Fact.Common.DBDateTime, _
ByVal break2Start As Fact.Common.DBDateTime, _
ByVal break2End As Fact.Common.DBDateTime, _
ByVal break3Start As Fact.Common.DBDateTime, _
ByVal break3End As Fact.Common.DBDateTime, _
ByVal lastEditAt As Nullable(Of Date) _
) As Date
[Obsolete("Shifts.UpdateEntShift method is no longer supported. Please call the corresponding updated method.")]
public static DateTime UpdateEntShift(
long entID,
long startDay,
long shiftID,
DateTime shiftStart,
DateTime shiftEnd,
Fact.Common.DBDateTime break1Start,
Fact.Common.DBDateTime break1End,
Fact.Common.DBDateTime break2Start,
Fact.Common.DBDateTime break2End,
Fact.Common.DBDateTime break3Start,
Fact.Common.DBDateTime break3End,
Nullable<DateTime> lastEditAt
)
Parameters
- entID
Required. Holds the ID of the entity whose shift schedule is being updated.
- startDay
- Required. Holds the day on which the shift starts (0=Sunday, 6=Saturday).
- shiftID
- Required. Holds the ID of the shift being updated.
- shiftStart
Optional. Holds the DateTime containing the time that the shift starts for the entity shift schedule (the date is ignored).
- shiftEnd
Optional. Holds the DateTime containing the time that the shift ends for the entity shift schedule (the date is ignored).
- break1Start
Optional. Holds the DateTime containing the time that the first break starts for the shift (the date is ignored).
- break1End
Optional. Holds the DateTime containing the time that the first break ends for the shift (the date is ignored).
- break2Start
Optional. Holds the DateTime containing the time that the second break starts for the shift (the date is ignored).
- break2End
Optional. Holds the DateTime containing the time that the second break ends for the shift (the date is ignored).
- break3Start
Optional. Holds the DateTime containing the time that the third break starts for the shift (the date is ignored).
- break3End
Optional. Holds the DateTime containing the time that the third break ends for the shift (the date is ignored).
- lastEditAt
Optional. A DateTime value that can be used to avoid data contention. If it is specified, the value must match that value in the database for the update to succeed.
Return Value
Returns a DateTime with the date and time the shift was updated.