Skip to main content

system.kanoa.asset.getParentAsset

Requires kanoaCore license

Description

Returns the parent asset of the given type for the given asset.

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)