GetByKey Method (BomItemSubst)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified BOM item substitute record from the Bom_Item_Subst table.
Parameters
- parentItemId
Required. Holds the ID of the parent item that identifies the record to be retrieved.
- verId
Required. Holds the ID of the BOM version that identifies the record to be retrieved.
- bomPos
Required. Holds the BOM position (usually sequential) that identifies the record to be retrieved. For byproducts, this value is negative. For this item being produced and if the BOM Position is 0, then the item_id is same as the parent_item_id.
- altNo
-
Required. Holds the alternative number for a BOM position that identifies the record to be retrieved.
Return Value
Returns a DataSet that contains the DataRow of the specified bom item substitute in the Bom_Item_Subst table. If no matching record for the specified bom item substitute is found, an empty DataSet is returned.