Click or drag to resize

ConneXionUpdateAttachment Method

Updates the attachment.

Namespace:  ConneXion
Assembly:  ConneXion (in ConneXion.dll) Version: 2020.0
Syntax
public ConneXionResult UpdateAttachment(
	Attachment oAttachment
)

Parameters

oAttachment
Type: ConneXionAttachment
The attachment data 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
Tip Tip

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 oAttachment As New ConneXion.Attachment
Dim oResult As ConneXion.ConneXionResult

oAttachment.TAMUserName = "EXEC"
oAttachment.TAMPassword = "PSWD"
oAttachment.RecordNumber = "167"
oResult = oConneXion.FindAttachment(oAttachment)

If oResult.Success Then

    oAttachment = oAttachment
    oAttachment.TAMUserName = "EXEC"
    oAttachment.TAMPassword = "PSWD"
    oAttachment.Description = "Update to the attachment"

    oResult = oConneXion.UpdateAttachment(oAttachment)

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