Skip to main content

system.kanoa.asset.getParentAsset

This function requires KanoaCore module

Description

Returns the parent asset of the given type for the given asset. (kanoaCore)

Syntax

getParentAsset(assetTypeName, assetPath)
  • Parameters
      assetTypeName (string) - e.g. 'site'
      assetPath (string) - e.g. 'Kanoa Industries\Adelaide Hills\Packaging\Line 1'
  • Returns
      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)