Click or drag to resize

ConneXionUpdateBroker Method

Used to Update a Broker

Namespace:  ConneXion
Assembly:  ConneXion (in ConneXion.dll) Version: 2020.0
Syntax
public ConneXionResult UpdateBroker(
	Broker oBroker
)

Parameters

oBroker
Type: ConneXionBroker
Broker object to update

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

Note: When doing an update, it is best to do a find first. This will populate the object with all the existing data before the update is made. If a find is not executed first, the object will be empty except for the data elements set in the update code

Examples
VB
Dim oConneXion As New ConneXion.ConneXion
Dim oBroker As New ConneXion.Broker
Dim oResult As ConneXion.ConneXionResult

oBroker.TAMUserName = "EXEC"
oBroker.TAMPassword = "PSWD"
oBroker.RecordNumber = "17"
oBroker.EntityID = "GREENE1"

oResult = oConneXion.FindBroker(oBroker)

If oResult.Success = False Then
    MessageBox.Show("FindBroker is false")
    txtResult.Text = "Number: " & oResult.Number & vbCrLf & "Desc: " &
        oResult.Description & vbCrLf & "TAMErrorNumber: " & oResult.TAMErrorNumber & vbCrLf & "TAMErroDesc: " & oResult.TAMDescription
Else
    oBroker.TAMUserName = "EXEC"
    oBroker.TAMPassword = "PSWD"
    oBroker.Email = "ragreene@greenegrasse.com"

    oResult = oConneXion.UpdateBroker(oBroker)
    If oResult.Success Then
        MessageBox.Show("Update Broker is successful")
        txtResult.Text = oResult.Description
    Else
        txtResult.Text = "Update broker is false" & vbCrLf & "Number: " & oResult.Number & vbCrLf & "Desc: " &
        oResult.Description & vbCrLf & "TAMErrorNumber: " & oResult.TAMErrorNumber & vbCrLf & "TAMErroDesc: " & oResult.TAMDescription
    End If
End If
See Also