Click or drag to resize

ConneXionInsertContact Method

Inserts the Contact.

Namespace:  ConneXion
Assembly:  ConneXion (in ConneXion.dll) Version: 2020.0
Syntax
public ConneXionResult InsertContact(
	ref Contact oContact
)

Parameters

oContact
Type: ConneXionContact
Contact 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
  • EntityKey
  • EntityID
Examples
VB
Dim oConneXion As New ConneXion.ConneXion
Dim oResult As New ConneXion.ConneXionResult
Dim oContact As New ConneXion.Contact

oContact.TAMUserName = "EXEC"
oContact.TAMPassword = "PSWD"
oContact.EntityKey = "p"
oContact.EntityID = "CJH"
oContact.FirstName = "Joe"
oContact.LastName = "Schmoe"
oContact.LicenseLines1 = oContact.LicenseLines.LINES_CASUALTY + oContact.LicenseLines.LINES_LIFE

oResult = oConneXion.InsertContact(oContact)

If oResult.Success = False Then
  txtContacts.Text = "InsertContact is false. " & oResult.Description & oResult.TAMDescription
Else
  txtContacts.Text = "InsertContact is successful. " & oResult.Description & oResult.TAMDescription
End If
See Also