DoAutoShiftChanges Method (Ent)
- Last UpdatedMar 17, 2026
- 1 minute read
The DoAutoShiftChanges() method causes automatic shift changes to be performed in the background for all entities that have scheduled shifts that are ready to be started, or optionally for only the specified entity.
Note: This method is no longer required as the MES middleware background service maintains shift changes automatically.
'Declaration
<ObsoleteAttribute("Ent.DoAutoShiftChanges method is no longer required as the MES middleware background service maintains shift changes automatically.")>
Public Shared Sub DoAutoShiftChanges( _
ByVal sessionId As Integer, _
ByVal entId As Nullable(Of Integer), _
ByVal currentLocalTime As Date _
)
'Usage
Dim sessionId As Integer
Dim entId As Nullable(Of Integer)
Dim currentLocalTime As Date
Ent.DoAutoShiftChanges(sessionId, entId, currentLocalTime)
[Obsolete("Ent.DoAutoShiftChanges method is no longer required as the MES middleware background service maintains shift changes automatically.")]
public static void DoAutoShiftChanges(
int sessionId,
Nullable<int> entId,
DateTime currentLocalTime
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- entId
- Optional. Holds the ID of the entity for which the auto-shift change schedule should be checked. If set to null, the auto-shift change schedule for all entities whose canSchedShifts flag is set to true will be checked.
- currentLocalTime
- Optional. Currently not used. Holds the current date/time in client’s local time.