Skip to main content

system.kanoa.inventory.deleteAssetBomItem(assetBomId, userId)

Deletes a single BOM line item from a specific installed asset instance, identified by assetBomId. This removes the asset-level override/extension entry from the asset's BOM; it does not affect the model-level BOM that the asset instance derives from.


Parameters

assetBomId Integer
userId Integer:Id of the user executing the function


Returns

success Boolean
message String None if success


Example

assetBomId = 5560
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
success, message = system.kanoa.inventory.deleteAssetBomItem(assetBomId, userId)
print success, message