Announcements
Hi folks,
I have a parameter table which let the user decide the network path which the AX batch job would continue to scan & read unread CSV files from.
My psedo code looks like this.
select firtsonly myParamTable;
Filepath filepath = @myparamtable.filepath
// What to do next so as to configure this batch job to read unread CSV files from above network path.
Pls share code /psuedocode
Thanks
Mav
Hi Mav,
Where did you store your CSV files?
If the files are on the server, please see:aspcodder.blogspot.com/.../how-to-read-csv-file-from-server-and.html
You could also have a look at the old thread about run the batch job:community.dynamics.com/.../import-file-on-network-in-batch-job
Here is a sample code to read all files from a directory https://community.dynamics.com/365/financeandoperations/b/faisalfareedaxlibrary/posts/ax-2012-reading-files-from-directory-through-x
now you can either store list of files you have already processed in a table and skip files you dont need or you can move files to a different folder after you process them, so you won't read them again.
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator