GetByKey Method (BomItem)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified BOM item record from the Bom_Item table.
Parameters
- parentItemId
Required. Holds the ID of the parent item that identifies the record to be retrieved.
- verId
Required. Holds the BOM version that identifies the record to be retrieved.
- bomPos
Required. Holds the BOM position that identifies the record to be retrieved. For by-products, this value is negative. For produced items, the BOM position is 0 and the item_id is the same as the parent_item_id. The BOM position is usually in a sequence.
Return Value
Returns a DataSet that contains the DataRow of the specified BOM item in the Bom_Item table. If no matching record for the specified BOM item is found, an empty DataSet is returned.