2017-10-01 13:35:59 UTC
I want to change my input .csv file by timestamp in order to avoid to
repeated running by AL. I mean that AL will not run on file that have
timestamp, and conversely if file have not timestamp in filename - will be processed.
So my questions is:
1.Are that good idea? If so, this is possible to implement without deleting original input file and creating new as output file with same name but with timestamp in name?
( like :
task.log("Configuring File Name for File System Connector");
var stDateStamp=system.formatDate((new Date()),"yyyyMMdd");
var inFile=srcPath + "fileSysInput_" + stDateStamp + ".csv ";
task.log("Input File Name: " + inFile);
2. If not, have anyone any proposal for this task? I know lazy and more simple way for this solution - just delete file from directory after AL was run on, but really I want elegant solution )
Thanks in advance for answers