system.kanoa.asset.getClosestAncestorAttribute
Description
Returns the assetAttrValue in order of the asset path tree. Returns None if the assetAttrValue isn't found.Syntax
getClosestAncestorAttribute(assetPath, assetAttrName)- assetPath (string)
- assetAttrName (string)
- assetAttrValue (string)
Code Examples
# Example Usage:
assetPath = 'Kanoa Industries\Adelaide Hills\Packagin\Line 1'
assetAttrValue = system.kanoa.asset.getClosestAncestorAttribute(assetPath, '_ProductionDay')