Skip to main content

system.kanoa.item.deleteItemPeriod

This function requires KanoaOPS module

Description

Deletes an item period in KanoaOPS.

Syntax

deleteItemPeriod(itemPeriodId, userId)
  • Parameters
      int itemPeriodId - The ID of the item period to be deleted.
      int userId - The ID of the user making the deletion.
  • Returns
      (int) Number of records modified
      (str) Error message if deletion fails
  • ### Code Examples ```python # Usage example records_modified, error_msg = system.kanoa.item.deleteItemPeriod(itemPeriodId=123, userId=456)

    if error_msg: print(f"Deletion failed: {error_msg}") else: print(f"Successfully deleted {records_modified} records.")