system.kanoa.quality.config.duplicateCheck
Description
Creates a copy of the passed-in check item ID in KanoaQDS.Syntax
duplicateCheck(chkItemId, chkItemName, userId)- int chkItemId - ID of the check item to be duplicated.
- str chkItemName - Name of the new check item.
- int userId - User ID
- int newChkItemId - ID of the newly created check item.
Code Examples
# Usage example
original_chk_item_id = 123
new_chk_item_name = 'Copy of Check 1'
user_id = 456
new_chk_item_id = system.kanoa.quality.config.duplicateCheck(chkItemId=original_chk_item_id, chkItemName=new_chk_item_name, userId=user_id)
if new_chk_item_id:
print(f"Successfully duplicated check item. New ID: {new_chk_item_id}")
else:
print("Duplication failed.")