Inserting Logs for the MDN Receipt Received on Sending a File
You can log the MDN Receipt details into the log database for all the files sent to the Trading Partners through AS2 protocol. To log MDN receipt details:
-
Create a trigger with Event Type selected as "AS2 Receipt Received".

-
Click Next and move forward to define the trigger action.
-
On the Trigger Action window, click Add.
-
Select the Trigger Action as "SQL Query" and click OK.

-
Define the SQL Query parameters and click OK.
Parameter NameDescriptionJdbcurl Provide the jdbc url of the Adeptia log database. Username Username of the Adeptia log database. Password Password for the Adeptia log database. Use the following QUERY in the SQL Query trigger action:
INSERT INTO AU_AS2LOG( AU_AS2_FROM, AU_AS2_TO, AU_CLIENT_HOST, AU_CLIENT_PORT,
AU_DISPOSITION_ACTION, AU_DISPOSITION_SENDING_MODE, AU_DISPOSITION_TYPE,
AU_DOMAIN_NAME, AU_ORIGINAL_MESSAGEID, AU_RECEIPT_MESSAGEID, AU_TYPE, AU_TIMESTAMP)
VALUES('%As2From%', '%As2To%', '%ClientHost%', '%ClientPort%', '%DispositionActionMode%','%DispositionSendingMode%', '%DispositionType%', '%DomainName%', '%OriginalMessageId%',
'%ReceiptId%', 'RECEIPT RECEIVED', unix_timestamp('%Year%-%Month%-%DayOfMonth% %Hour%:%Minute%:%Second%')*1000+%Millisecond%) -
Select the newly created trigger and click OK.