Skip to main content

system.kanoa.item.checkItemStateClassPath(itemStateClassPath, userId)

checks if an itemStateClassPath exists and creates it if it doesn't


Parameters

itemStateClassPath String: path of item state class to check for
userId Integer


Returns

itemStateClassId Integer
message String None if success


Example

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