Skip to Content
avatar image
Former Member

B1iSN/B1if: Get files from file system and send mail with attachment to receiver

Hi,

Let's say there are several files (will be generated by a scenario step "B12File") located in a file system where the integration framework is running. now I want to pick up file one by one and send email with attachment via smtp. one attachment per email. and the file name have a subsequent suffix number (e.g. myfile??.xml).

for example, the first time I picked up two files myfile01,myfile02(GetFiles atom) and sent email with attachment one after another by using for-each handling. Now the problem is that how to ensure that only the rest files e.g. myfile03,04 and others will be retrieved next time?

Best regards

Jim

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 29, 2017 at 07:40 PM

    Hi Jim,

    I know this is an old question, if you're still looking for an answer, I've done something similar before. I created an XML document that I stored in the webdav scenario folder and I updated this each time the scenario ran to say what the last file processed was.

    You can save and update files in the webdav environment using the persist atom.

    Regards

    Cameron

    Add comment
    10|10000 characters needed characters exceeded