Skip to main content

system.kanoa.item.updateItemPeriod

Requires kanoaOPS license

Description

Updates the item period.

Syntax

updateItemPeriod(periodInfo, userId)

Parameters:
  • periodInfo (Dictionary): Dictionary containing updated period information.
  • userId (Integer): User ID.

  • Returns:
  • # of records modified (Integer)
  • Dictionary

    ParameterTypeRequiredNotes
    itemPeriodIdinte.g. 1
    itemPeriodNamestringe.g. 'second'
    enabledboole.g. True

    Code Examples

    # Example Usage:
    modifiedRecords = system.kanoa.item.updateItemPeriod({'itemPeriodId': 1, 'itemPeriodName': 'second', 'enabled': True}, 123)