Skip to main content

system.kanoa.item.deleteItemPeriod

Requires kanoaOPS license

Description

Deletes an item period in KanoaOPS.

Syntax

deleteItemPeriod(itemPeriodId, userId)

Parameters:
  • itemPeriodId (int): The ID of the item period to be deleted.
  • userId (int): The ID of the user making the deletion.

  • Returns:
  • (int) Number of records modified
  • (string) Error message if deletion fails
  • Code Examples

    # Example Usage:
    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.")