Click or drag to resize

ConneXionFindVendorsByCriteria Method

Finds the Vendors by Criteria.

Namespace:  ConneXion
Assembly:  ConneXion (in ConneXion.dll) Version: 2020.0
Syntax
public ConneXionResult FindVendorsByCriteria(
	Vendor oVendor,
	ref Vendor[] oVendors
)

Parameters

oVendor
Type: ConneXionVendor
Vendor object to Find
oVendors
Type: ConneXionVendor
List of Vendors by Criteria

Return Value

Type: ConneXionResult
ConneXionResult.
Remarks

Required Fields

  • TAMUserName
  • TAMPassword
  • TAMCentralAgency - only if agency is on AppliedOnline
  • LicenseKey - only if agency is an Agency of Vendor

Available Search Criteria

  • Attention
  • City
  • Fax
  • MaxCount
  • Name
  • Note
  • Phone
  • RecordNumber
  • State
  • Street
  • Street2
  • Tag
  • ZipCode
Note Note
MaxCount: This field limits the number of records returned when calling FindVendorsByCriteria to avoid time out issues. Once MaxCount is set, additional code can be added to see if there are additional records to be returned and loop thru those records.
Examples
VB
Dim oConneXion As New ConneXion.ConneXion
Dim oResult As New ConneXion.ConneXionResult
Dim oVendor As New ConneXion.Vendor
Dim oVendors() As ConneXion.Vendor

oVendor.TAMUserName = "EXEC"
oVendor.TAMPassword = "PSWD"
oVendor.State = "IL"

oResult = oConneXion.FindVendorsByCriteria(oVendor, oVendors)


If oResult.Success = False Then
  txtResult.Text = "FindVendorsByCriteria is false. " & oResult.Description & oResult.TAMDescription
Else
  txtResult.Text = "FindVendorsByCriteria is successful. " & oResult.Description & oResult.TAMDescription
  dgrdVendor.DataSource = oVendors
End If
See Also