Skip to main content

system.kanoa.item.updateItemClass

Requires kanoaOPS license

Description

Updates an item class.

Syntax

updateItemClass(itemClassInfo, userId)

Parameters:
  • itemClassInfo (Dictionary): Dictionary containing updated item class information.
  • userId (Integer)

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

    ParameterTypeRequiredNotes
    itemClassIdint
    parentIdint
    itemClassNamestringe.g. 'FG'
    itemClassDescriptionstringe.g. 'Finished Goods'
    itemIdint
    itemClassColorstringe.g. '#FF00FF'
    enabledbool

    Code Examples

    # Example Usage:
    modifiedRecords = system.kanoa.item.updateItemClass({'itemClassId': 1, 'parentId': 56, 'itemClassName': 'FG', 'itemClassDescription': 'Finished Goods', 'itemId': 1, 'itemClassColor': '#FF00FF', 'enabled': True}, 123)