system.kanoa.item.addItemStateClass
Description
Adds a new item state classSyntax
addItemStateClass(itemStateClassInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
itemStateClassName | string | ||
parentId | int | ||
itemStateClassDescription | string | ||
enabled | bool |
Code Examples
# Example Usage:
userId = 1
itemStateClassInfo = {'itemStateClassName': 'Scrap Reasons', 'parentId': None, 'itemClassDescription': None, 'enabled': True}
itemStateClassId, msg = system.kanoa.item.addItemStateClass(itemStateClassInfo, userId)