Skip to main content

system.kanoa.asset.addStateCategory(stateCategoryName, userId)

Adds a state category. If the category already exists, it will return the stateCategoryId.


Parameters

stateCategoryName String: Name of the state category
userId Integer


Returns

stateCategoryId Integer


Example

stateCategoryId = system.kanoa.asset.addStateCategory('Electrical', 789)