Step 3. Add an Email acknowledgement to your Processing Sequence
LIC006 - Add Email Acknowledgement to Processing Sequence
You have set up configurations for the SMTP email. Now you can add an email acknowledgement to your Processing Sequence.
1. In the
, expand and select .2. Select your Processing sequence, iiiTUTSEQ03 and create a new processing sequence by copying it. Save the new one as ID: iiiTUTSEQ04, Description: iii Tutorial – LIC006 and save it.
Use the
button to open the new processing sequence. You want to send a single email to a if any xml files were found and transformed for that Trading Partner.3. From the If, so it is at the same level as the FILELIST Loop.
tab select the construct and add it to the sequence at the end. Adjust, using , the level of the4. Select the &FILECNT *GT 0
and in the enter5. From the MAIL_SEND and add to the sequence after the If so that the MAIL_SEND is within the If. You can adjust the levels if necessary using the icons.
tab select6. Select the MAIL_SEND In the (bottom right), enter a for SMTPMESSAGEDETAILID of the SMTP mail detail configuration you created in the last step (iiiTUTEMAILACK) or drag and drop it from the tab.
7. Add the SMTPSERVERID.
(iiiTUTSMTPID) you created to the for8. Enter a *TRADINGPARTNER.EM (that is *TRADINGPARTNER without an "S" plus a full stop "." and EM)., or drag and drop it from the tab.
ofThis means when the
is executed it will assign the value of the email address from the to the email address used by the MAILS_END Activity. In this way the email will be sent to the being processed.
You need to execute the MAIL_SEND Activity if any entries were found in the FILELIST. Remember that FILECNT is the index for the FILELIST.
9. You now need to ensure that the FILECNT is always zero before building the FILELIST. You do not want the FILECNT to have a value left over from a previous Trading Partner. So you must set FILECNT to zero before the list is set up. To do this, select an DIRECTORY_LIST.
from the and add to the sequence before the Activity10. Select the &FILECNT = 0
and set the toYour processing sequence should now look like the following:
11.
your changes to the processing sequence.