Skip to main content

system.kanoa.shift.updateShiftBlock

This function requires KanoaOps module

Description

Updates a shift block (kanoaOps).

Syntax

updateShiftBlock(shiftBlockInfo, userId)
  • Parameters
      shiftBlockInfo (Dictionary) - Shift block information.
      userId (Integer) - User ID.
  • Returns
      # of records modified.
  • Code Example

    # Example Usage:
    modifiedRecords = system.kanoa.shift.updateShiftBlock({'shiftBlockId': 1, 'shiftId': 2, 'startDate': newDate, 'endDate': newDate, 'rruleStr': 'FREQ=WEEKLY;COUNT=10'}, 123)