Skip to main content

system.kanoa.item.addItemStateClass

Description

Adds a new item state class

Syntax

addItemStateClass(itemStateClassInfo, userId)

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

  • Returns:
  • itemStateClassId (int)
  • msg (string): None if success
  • Dictionary

    ParameterTypeRequiredNotes
    itemStateClassNamestring
    parentIdint
    itemStateClassDescriptionstring
    enabledbool

    Code Examples

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