Skip to main content

system.kanoa.item.deleteItemClass

This function requires KanoaOPS module

Description

Deletes an item class. It may have items or other item classes underneath it. The function attempts to delete, but if there are dependencies, it returns the number of modified records and an error message (kanoaOPS).

Syntax

deleteItemClass(itemClassId, userId)
  • Parameters
      itemClassId (Integer) - ID of the item class to delete.
      userId (Integer) - ID of the user.
  • Returns
      # of records modified (Integer), errorMessage (String).
  • Code Examples

    # Example Usage:
    itemClassId = 12
    userId = 17
    deletedRecords, errorMessage = system.kanoa.item.deleteItemClass(itemClassId, userId)