Skip to main content

system.kanoa.asset.addStateCategory

This function requires KanoaOPS module

Description

Adds a State Category to the stateCategory table (kanoaOPS)

Syntax

addStateCategory(stateCategoryName, userId)
  • Parameters
      stateCategoryName (string) - The name of the state category
      userId (int) - User ID
  • Returns
      stateCategoryId (int) - The ID of the newly added state category
  • Code Examples

    # Example Usage:
    state_category_id = system.kanoa.asset.addStateCategory('Category_Name', 789)