Skip to main content

system.kanoa.sheet.getUniqueChecksOnly(assetChkShts)

The kanoa.qds.config.sheets.getSheetsFilteredBy() function can return duplicate check sheets due to the join for items, itemSets and triggers. This function will remove duplicates and return a json list of unique chkShtIds


Parameters

assetChkShts Dataset: Dataset returned by kanoa.qds.config.sheets.getSheetsFilteredBy()


Returns

chkShtIdList List of Integers


Example

paramsDict={'enabled': True, 'triggerTypeId': 1}
assetChkShts = system.kanoa.qds.config.sheets.getSheetsFilteredBy(paramsDict)
chkShtIdList = system.kanoa.quality.sheet.getUniqueChecksOnly(assetChkShts)