Skip to main content

system.kanoa.quality.config.sheets.deleteAssets

This function requires KanoaQDS module

Description

Deletes asset links for a check sheet in KanoaQDS.

Syntax

deleteAssets(chkShtId, assetIdList, userId)
  • Parameters
      chkShtId - ID of the check sheet (int).
      assetIdList - List of asset IDs (list of int).
      userId - User ID (int).
  • Returns
      # of records modified - Number of records modified (int).
  • Code Example

    # Usage example
    chk_sht_id = 56
    asset_id_list = [1, 2, 3]
    user_id = 123
    records_modified = system.kanoa.quality.config.sheets.deleteAssets(chkShtId=chk_sht_id, assetIdList=asset_id_list, userId=user_id)

    print(records_modified)