CopyEntityShiftSchedule Method (Ents)
- Last UpdatedNov 06, 2025
- 1 minute read
The CopyEntityShiftSchedule() method copies the shift schedules from the specified source entity to those entities specified in an entity list that can schedule shifts. Optionally, a shift ID list can be included to specify the shifts that will be copied. If the shift ID list is null, then all shifts from the source entity will be copied.
'Declaration
Public Shared Sub CopyEntityShiftSchedule( _
ByVal SourceEntId As Integer, _
ByVal entIDs As List(Of Integer), _
ByVal shiftIDs As List(Of String) _
)
public static void CopyEntityShiftSchedule(
int SourceEntId,
List<int> entIDs,
List<string> shiftIDs
)
Parameters
- SourceEntId
- Requierd. Holds the ID of the source entity.
- entIDs
- Required. Holds the list of IDs of the entities to which the shift schedule is to be copied.
- shiftIDs
- Required. Holds a list of IDs for the shifts that are to be copied. This is a list of order pairs in the form "#:#," where the first number is the start day of the shift and the second number is the shift ID. If the shift ID list is null, all shifts from the source entity will be copied.