system.kanoa.asset.getParentAsset
Description
Returns the parent asset of the given type for the given asset. (kanoaCore)Syntax
getParentAsset(assetTypeName, assetPath)- assetTypeName (string) - e.g. 'site'
- assetPath (string) - e.g. 'Kanoa Industries\Adelaide Hills\Packaging\Line 1'
- asset data (pyDataSet).
Code Examples
# Example Usage:
asset_type_name = 'site'
asset_path = 'Kanoa Industries\Adelaide Hills\Packaging\Line 1'
parent_asset_data = system.kanoa.asset.getParentAsset(asset_type_name, asset_path)