system.kanoa.inventory.deleteModelBomItem(modelBomId, userId)
Deletes a single BOM line item from a model's catalog-level Bill-of-Materials, identified by modelBomId.
This removes the component position (part or child-model reference) from the model's BOM structure; it does not delete the underlying part or child model itself.
Parameters
modelBomId Integer
userId Integer:Id of the user executing the function
Returns
success Boolean
message String None if success
Example
modelBomId = 3021
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
success, message = system.kanoa.inventory.deleteModelBomItem(modelBomId, userId)
print success, message