Skip to main content

system.kanoa.quality.config.linkItems

This function requires KanoaQDS module

Description

Adds links between an itemSet and a list of items in KanoaQDS.

Syntax

linkItems(itemSetId, itemList, enabled, userId)
  • Parameters
      int itemSetId - ID of the item set.
      list itemList - List of item IDs.
      bit enabled - Enable/disable the links.
      int userId - User ID.
  • Returns
      int recordsModified - Number of records modified.
  • Code Examples

    # Usage example
    item_set_id_to_link = 1
    item_list_to_link = [2, 3, 4]
    enable_links = True
    user_id = 123
    modified_records = system.kanoa.quality.config.linkItems(itemSetId=item_set_id_to_link, itemList=item_list_to_link, enabled=enable_links, userId=user_id)

    print(f"Modified {modified_records} records.")