Question
Infosys
IN
Last activity: 8 Sep 2020 2:00 EDT
Process multiple CSV files using File listener
Hello ,
we have a requirement where the files will be placed in the folder in assorted order like below.
FileA,FileB,FinalFile,FileC or FinalFile,FileA,FileB etc.,
we always need to process FinalFile first then followed by other files and also frequency of the files would be once or twice in a month.
What would be the best approach to achieve this requirement?
Thanks,
***Edited by Moderator: Pallavi to update platform capability tags, change category from General to Product***
Hi,
If you want to process a CSV in some location when file is available best approach is go with File Listener
Create 3 File Listeners with each filename
And Create a Data Table and When make sure each file listener process each file and store data in Data Table (to distinguise each file data create a colume with some code)
Later write an activity to apply your logic on data.
===========================================================
Another Approach
If files are in same server location then we can achieve with pxParseExcelFile OOTB Activity
1.Create a BinaryFile Excel Template files with same properties
2. In activity set file path to property pxrequestor.pyFileUpload
3. use pxParseExcelFile OOTB Activity pass required parameter