Click or drag to resize

ConneXionFindAttachmentsForPolicy Method

Finds the attachments for policy.

Namespace:  ConneXion
Assembly:  ConneXion (in ConneXion.dll) Version: 2020.0
Syntax
public ConneXionResult FindAttachmentsForPolicy(
	ref Attachment oAttachment,
	ref Attachment[] oAttachments
)

Parameters

oAttachment
Type: ConneXionAttachment
The attachment data object to Find.
oAttachments
Type: ConneXionAttachment
List of attachments.

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

It is advised to provide more fields to increase performance while Finding attachments. For Example:

  • PolicyIndex
  • StartDate
  • EndDate
Examples
VB
Dim oConneXion As New ConneXion.ConneXion
Dim oAttachment As New ConneXion.Attachment
Dim oResult As ConneXion.ConneXionResult
Dim oAttachments() As ConneXion.Attachment

oAttachment.TAMUserName = "EXEC"
oAttachment.TAMPassword = "PSWD"
oAttachment.RetrieveFileInfo = True
oAttachment.PolicyIDX = "DESIG-1-1001"
oAttachment.StartDate = "20020509"
oAttachment.EndDate = "20030510"

oResult = oConneXion.FindAttachmentsForPolicy(oAttachment, oAttachments)

If oResult.Success Then
    txtResult.Text = "FindAttachmentsForPolicy is Successful.  " & oResult.Description & "."
    dgrdResult.DataSource = oAttachments
Else
    txtResult.Text = "FindAttachmentsForPolicy is false" & vbCrLf & "Number: " & oResult.Number & vbCrLf & "Desc: " &
     oResult.Description & vbCrLf & "TAMErrorNumber: " & oResult.TAMErrorNumber & vbCrLf & "TAMErroDesc: " & oResult.TAMDescription
End If
See Also