system.kanoa.quality.config.sheets.getSheetsByAsset
Description
Returns all unique check sheets linked to assets based on the provided criteria.Syntax
getSheetsByAsset(paramsDict)- paramsDict - Dictionary containing optional parameters:
- - 'enabled': True to filter by enabled check sheets (bool).
- - 'chkShtTypeId': ID of the check sheet type (int).
- - 'assetPath': Path of the asset (string).
- - 'assetPathList': List of Asset Paths.
- data - PyDataset containing unique check sheet information.
Code Example
# Usage example
params_dict = {'enabled': True, 'chkShtStateId': 1, 'chkShtStateName': 'Approved', 'assetPathList': ['ABC Box Co', 'Glue Factory']}
sheets_data = system.kanoa.quality.config.sheets.getSheetsByAsset(paramsDict=params_dict)
print(sheets_data)