GetByKey Method (Shipment)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified shipment record from the Shipment table.
'Declaration
Public Shared Function GetByKey( _
ByVal custId As String, _
ByVal poId As String, _
ByVal soLineNumber As Integer, _
ByVal shipDateUtc As Date _
) As DataSet
public static DataSet GetByKey(
string custId,
string poId,
int soLineNumber,
DateTime shipDateUtc
)
Parameters
- custId
- Required. Holds the customer ID.
- poId
- Required. Holds the purchase order ID.
- soLineNumber
- Required. Holds sales order line number of the goods shipped.
- shipDateUtc
- Required. Holds the date and time, in UTC, when the goods were shipped.
Return Value
Returns a DataSet that contains the DataRow of the specified shipment in the Shipment table. If no matching record is found, an empty DataSet is returned.