Skip to main content

system.kanoa.asset.getClosestAncestorAttribute(assetPath, assetAttrName)

Returns the assetAttrValue in order of the asset path tree. Returns None if the assetAttrValue isn't found.


Parameters

assetPath String: Path of the asset to begin search from
assetAttrName String: Name of the attribute to search for


Returns

assetAttrValue String The value found or None


Example

# Example Usage:
assetPath = 'Kanoa Industries\Adelaide Hills\Packagin\Line 1'
assetAttrValue = system.kanoa.asset.getClosestAncestorAttribute(assetPath, '_ProductionDay')