Skip to main content

system.kanoa.item.updateItemStateClass

Description

Updates an item state class.

Syntax

addItemStateClass(itemStateClassInfo, userId)

Parameters:
  • itemStateClassInfo (dict)
  • userId (int)

  • Returns:
  • # of records modified (int)
  • msg (string): None if success
  • Dictionary

    ParameterTypeRequiredNotes
    itemStateClassIdint
    itemStateClassNamestring
    parentIdint
    itemStateClassDescriptionstring
    enabledbool

    Code Examples

    # Example Usage:
    userId = 1
    itemStateClassInfo = {'itemStateClassId': 47, 'itemStateClassName': 'Scrap Reasons', 'parentId': None, 'itemClassDescription': None, 'enabled': True}
    retval, msg = system.kanoa.item.updateItemStateClass(itemStateClassInfo, userId)