Skip to main content

system.kanoa.utilities.getFieldValue(field, data)

Helper function that returns a scalar value for the passed in column (field) from a dataset. Expects there to be 1 row in the dataset. Returns None if passed an empty dataset or invalid column name


Parameters

field String: Name of the dataset column
data Dataset: data t retrieve value from


Returns

value pyObject


Example

data = system.kanoa.asset.getAssets({'assetPath': 'Kanoa Box Co\Box Plant\Packaging\Box Line 1'})
print system.kanoa.utilities.getFieldValue('assetId', data)
>901