ICIAS2TransactionInfo Interface

The ICIAS2TransactionInfo interface is used to retrieve information about an AS2 transaction. See also ICIAS2OutboundSettings - AS2 Outbound Settings Interface, ICIAS2InboundSettings - AS2 Inbound Settings Interface, and ICIAS2SendActionParams - AS2 Send Action Parameters Interface.

interface ICIAS2TransactionInfo : IDispatch {

Properties

  • Property Direction As AS2TransactionDirection read-only

  • Retrieves the direction of a transaction.

    HRESULT Direction([out, retval] AS2TransactionDirection* pVal);

    AS2TransactionDirection:

    AS2TransDirectionInbound = 0

    AS2TransDirectionOutbound = 1

    Example (VBScript):

    if AS2TransDirectionOutBound = oAS2T.Direction then
    MsgBox "Outbound."
    end if

    EFT v6.3 and later

  • Property File As String read-only

  • Retrieves the name of file transferred.

    HRESULT File([out, retval] BSTR* pVal);

    Example (VBScript):

    MsgBox "AS2 file name: " & oAS2T.File

    EFT v6.3 and later

  • Property From As String read-only

  • Retrieves the alias of the sender of the AS2 message.

    HRESULT From([out, retval] BSTR* pVal);

    Example (VBScript):

    MsgBox "AS2 sender: " & oAS2T.From

    EFT v6.3 and later

  • Property MessageID As String read-only

  • Retrieves the message ID from an AS2 header.

    HRESULT MessageID([out, retval] BSTR* pVal);

    Example (VBScript):

    MsgBox "AS2 message ID: " & oAS2T.MessageID

    EFT v6.3 and later

  • Property Path As String read-only

  • Retrieves the file path – local inbox or outbox.

    HRESULT Path([out, retval] BSTR* pVal);

    Example (VBScript):

    MsgBox "AS2 file path: " & oAS2T.Path

    EFT v6.3 and later

  • Property RemoteHost As String read-only

  • Retrieves the host address of the sender (Inbound)/receiver (Outbound).

    HRESULT RemoteHost([out, retval] BSTR* pVal);

    Example (VBScript):

    MsgBox "AS2 remote host address: " & oAS2T.RemoteHost

    EFT v6.3 and later

  • Property Status As AS2TransactionStatus read-only

  • Retrieves the status of an AS2 transaction.

    HRESULT Status([out, retval] AS2TransactionStatus* pVal);

    Example (VBScript):

    Const AS2TransactionInProgress = 0
    Const AS2TransactionSuccess = 1
    Const AS2TransactionFailedCanResend = 2
    Const AS2TransactionFailedNoResend = 3
    Const AS2TransactionOkSendMDNFailed = 4
    
    if AS2TransactionSuccess = oAS2T.Status then
    MsgBox “AS2 transaction success.”
    end if

    EFT v6.3 and later

  • Property Time As Date read-only

  • Retrieves the date/time last recorded status for the transaction.

    HRESULT Time([out, retval] DATE* pVal);

    Example (VBScript):

    MsgBox "AS2 Date/Time: " & CStr(oAS2T.Time)

    EFT v6.3 and later

  • Property To As String read-only

  • Retrieves the alias of the receiver of the AS2 message.

    HRESULT To([out, retval] BSTR* pVal);

    Example (VBScript):

    MsgBox "AS2 receiver: " & oAS2T.To

    EFT v6.3 and later

  • Property TransactionID As String read-only

  • Retrieves the ID of an AS2 transaction.

    HRESULT TransactionID([out, retval] BSTR* pVal);

    Example (VBScript):

    MsgBox "AS2 transaction ID: " & oAS2T.TransactionID

    EFT v6.3 and later