Skip to main content

system.kanoa.shift.updateShiftBlockExceptions(shiftBlockId, newStartDate)

Updates a shift blocks exceptions date. When a shift block's startDate gets updated, all of its exceptions need to have its dates updated too


Parameters

shiftBlockId Integer: Id of shift block to update
newStartDate DateTime: New exception date


Returns

None


Example

system.kanoa.shift.updateShiftBlockExceptions(1, system.date.parse("2025-11-05 00:00:00"))