Click or drag to resize

ConneXionFindEmployeesByCriteria Method

Finds the Employees by Criteria.

Namespace:  ConneXion
Assembly:  ConneXion (in ConneXion.dll) Version: 2020.0
Syntax
public ConneXionResult FindEmployeesByCriteria(
	Employee oEmployee,
	ref Employee[] oEmployees
)

Parameters

oEmployee
Type: ConneXionEmployee
Employee object to Find
oEmployees
Type: ConneXionEmployee
List of Employees.

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
Note Note
MaxCount: This field limits the number of records returned when calling FindEmployeesByCriteria 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 oEmployee As New ConneXion.Employee
Dim oEmployees() As ConneXion.Employee
Dim oResult As ConneXion.ConneXionResult

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

oResult = oConneXion.FindEmployeesByCriteria(oEmployee, oEmployees)

If oResult.Success Then
    MessageBox.Show("Find Employees By Criteria is successful")
    txtResult.Text = oResult.Description
    dgrdResult.DataSource = oEmployees
Else
    txtResult.Text = "Find Employees By Criteria is false" & vbCrLf & "Number: " & oResult.Number & vbCrLf & "Desc: " &
    oResult.Description & vbCrLf & "TAMErrorNumber: " & oResult.TAMErrorNumber & vbCrLf & "TAMErroDesc: " & oResult.TAMDescription
End If
See Also