Skip to main content

system.kanoa.asset.addStateCategory

Requires kanoaOPS license

Description

Adds a State Category to the stateCategory table.

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)