Skip to main content

system.kanoa.shift.updateShiftBlockField

This function requires KanoaOps module

Description

Updates the passed field value for the given shiftBlockId (kanoaOps).

Syntax

updateShiftBlockField(shiftBlockId, field, value, userId)
  • Parameters
      shiftBlockId (Integer) - Shift Block ID.
      field (String) - Name of the column.
      value (Object) - New value.
      userId (Integer) - User ID.
  • Returns
      # of records modified.
  • Code Example

    # Example Usage:
    modifiedRecords = system.kanoa.shift.updateShiftBlockField(1, 'startDate', newStartDate, 123)