Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi community,
I'm working on a simple program, but as i'm quite new not sure how to continue.
The program have to do the following:
1) Connect to a SFTP server (ok)
2) List the files into a SFTP folder (ok)
3) Move the files into a computer folder (ok)
4) Send a mail confirming whose files have been moved (I think need to send by email the tLogRow output?)
5) If there's no files on the SFTP folder I also want to receive a different mail saying that there was no files into the SFTP. (no idea how to do it)
The tSendMail is well configured as I've managed to receive test emails. Can you please help me with points 4 and 5? I think it's something to write into the tSendMail..
Thanks a lot
Hi!
It worked like a charm, thanks a lot!
Have other question, not sure if needed to open other post.. it's possible to add the tLogRow output to the email? just to know name of files that been procesed.
Thanks again
Hi Shong, thanks for the answer.
I canno't make it work.
I've added a tJavaFlex (after the if condition) with your code but I think it doesn't know what's filename.
Also, how can I link the tJavaFlex with the email? with a main?
Thanks a lot
It worked! thanks a lot.
Last question (not sure if possible to do it), I also want to once done, move again the files to another folder 'historic' and add an OK at the end of the filename so.
1111.xml to other FTP folder but with OK_1111.xml name.
I have the procedure done with a tFTPput but I don't know how to pass the filename into the "Newname" variable. If I put "" it keeps the name but cannot add the OK_ at the beggining.
I've also tried in tFTPput Newname "OK_"+ context.filename but it doenst work.
Thanks a lot!!