GetByKey Method (CustContact)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified customer or vendor contact.
'Declaration
Public Shared Function GetByKey( _
ByVal custId As String, _
ByVal contactId As Integer _
) As DataSet
'Usage
Dim custId As String
Dim contactId As Integer
Dim value As DataSet
value = CustContact.GetByKey(custId, contactId)
Parameters
- custId
- Required. Holds the customer or vendor ID.
- contactId
- Required. Holds the contact ID.
Return Value
Returns a DataSet that contains the DataRow of the specified contact in the the Cust_Contact table. If no matching record is found, an empty DataSet is returned.