Skip to main content

system.kanoa.item.checkItemStateClassPath

Description

Checks if an itemStateClassPath exists and creates it if it doesn't.

Syntax

checkItemStateClassPath(itemStateClassPath, itemStateClassId, itemStates, userId)

Parameters:
  • itemStateClassPath (string)
  • userId (int)

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

    # Example Usage:
    itemStateClassPath = 'Scrap Reasons\Illegible label'
    userId = 17
    itemStateClassId, msg = system.kanoa.item.checkItemStateClassPath(itemStateClassPath, userId)