GetByKey Method (Lot)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves a single row from the Lot table using the specified primary key fields.
Parameters
- itemId
Required. Holds the ID of the item that identifies the record to be retrieved.
- lotNo
Required. Holds the lot number of the item that identifies the record to be retrieved.
Return Value
Returns a DataSet that contains the DataRow of the specified lot in the Lot table. If no matching record for the specified lot is found, an empty DataSet is returned.