Click or drag to resize

ConneXionInsertEmployee Method

Inserts the Employee.

Namespace:  ConneXion
Assembly:  ConneXion (in ConneXion.dll) Version: 2020.0
Syntax
public ConneXionResult InsertEmployee(
	ref Employee oEmployee
)

Parameters

oEmployee
Type: ConneXionEmployee
Employee object to Insert

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
  • EntityID
Examples
VB
Dim oConneXion As New ConneXion.ConneXion
Dim oEmployee As New ConneXion.Employee
Dim oResult As ConneXion.ConneXionResult

oEmployee.TAMUserName = "EXEC"
oEmployee.TAMPassword = "PSWD"
oEmployee.Name = "Ulf Grasse"
oEmployee.Street = "103 N. Halsted"
oEmployee.State = "IL"
oEmployee.City = "Itasca"
oEmployee.ZipCode = "60143"
oEmployee.Sex = "1"
oEmployee.EntityID = "GRASUL1"
oEmployee.MaritalStatus = "3"

oResult = oConneXion.InsertEmployee(oEmployee)

If oResult.Success = True Then
    MessageBox.Show("InsertEmployee is successful")
    txtResult.Text = oResult.Description
Else
    txtResult.Text = "Insert Employee is false" & vbCrLf & "Number: " & oResult.Number & vbCrLf & "Desc: " &
    oResult.Description & vbCrLf & "TAMErrorNumber: " & oResult.TAMErrorNumber & vbCrLf & "TAMErroDesc: " & oResult.TAMDescription
End If
See Also