Click or drag to resize

ConneXionFindProspectsByCriteria Method

Finds the prospects by criteria.

Namespace:  ConneXion
Assembly:  ConneXion (in ConneXion.dll) Version: 2020.0
Syntax
public ConneXionResult FindProspectsByCriteria(
	Prospect Prospect,
	ref Prospect[] Prospects
)

Parameters

Prospect
Type: ConneXionProspect
Prospect object to Find
Prospects
Type: ConneXionProspect
List of prospects.

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

  • Name
  • Attention
  • Street
  • City
  • State
  • Zipcode
  • Occupation
  • Note
  • PhoneResidential
  • PhoneBusiness
  • PhoneFax
  • Agency
  • Branch
  • CSR
  • Producer
  • Classification
  • Broker
  • MaxCount
  • Heading

MaxCount: This field limits the number of records returned when calling FindProspectsByCriteria 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 oProspect As New ConneXion.Prospect
Dim oConneXion As New ConneXion.ConneXion
Dim oProspects() As ConneXion.Prospect
Dim oResult As ConneXion.ConneXionResult

oProspect.LicenseKey = "1234567  1"
oProspect.State = "IL"
oProspect.TAMUserName = "EXEC"
oProspect.TAMPassword = "PSWD"
oProspect.TAMCentralAgency = "DEMOAG1"

oResult = oConneXion.FindProspectsByCriteria(oProspect, oProspects)
If oResult.Success = True Then
    txtResult.Text = oResult.Description
    dgrd.DataSource = oProspects
Else
    txtResult.Text = "Number: " & oResult.Number & vbCrLf & "Desc: " & oResult.Description & vbCrLf & "TAMErrorNumber: " &
        oResult.TAMErrorNumber & vbCrLf & "TAMErroDesc: " & oResult.TAMDescription
End If
See Also