ICIAS2TransactionInfo - AS2 Transaction Information 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 {

Members

How it's used

Applicable Versions

Property Direction As AS2TransactionDirection read-only

Allows you to retrieve 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 Server v6.3 and later

Property File As String read-only

Allows you to retrieve the name of file transferred.

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

Example (VBScript):

MsgBox "AS2 file name: " & oAS2T.File

EFT Server v6.3 and later

Property From As String read-only

Allows you to retrieve the alias of the sender of the AS2 message.

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

Example (VBScript):

MsgBox "AS2 sender: " & oAS2T.From

EFT Server v6.3 and later

Property MessageID As String read-only

Allows you to retrieve the message ID from an AS2 header.

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

Example (VBScript):

MsgBox "AS2 message ID: " & oAS2T.MessageID

EFT Server v6.3 and later

Property Path As String read-only

Allows you to retrieve the file path – local inbox or outbox.

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

Example (VBScript):

MsgBox "AS2 file path: " & oAS2T.Path

EFT Server v6.3 and later

Property RemoteHost As String read-only

Allows you to retrieve 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 Server v6.3 and later

Property Status As AS2TransactionStatus read-only

Allows you to retrieve 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 Server v6.3 and later

Property Time As Date read-only

Allows you to retrieve 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 Server v6.3 and later

Property To As String read-only

Allows you to retrieve the alias of the receiver of the AS2 message.

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

Example (VBScript):

MsgBox "AS2 receiver: " & oAS2T.To

EFT Server v6.3 and later

Property TransactionID As String read-only

Allows you to retrieve ID of an AS2 transaction.

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

Example (VBScript):

MsgBox "AS2 transaction ID: " & oAS2T.TransactionID

EFT Server v6.3 and later