GetByKey Method (BomVersion)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified BOM version record from the Bom_Ver table.
'Declaration
Public Shared Function GetByKey( _
ByVal parentItemId As String, _
ByVal verId As String _
) As DataSet
'Usage
Dim parentItemId As String
Dim verId As String
Dim value As DataSet
value = BomVersion.GetByKey(parentItemId, verId)
public static DataSet GetByKey(
string parentItemId,
string verId
)
Parameters
- parentItemId
Required. Holds the ID of the parent item of the BOM version that is being retrieved.
- verId
Required. Holds the BOM version that is being retrieved.
Return Value
Returns a DataSet that contains the DataRow of the specified BOM version in the Bom_Ver table. If no matching record for the specified BOM version is found, an empty DataSet is returned.