Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to read unread CSV files from network path value of which is stored in parameter table.

(0) ShareShare
ReportReport
Posted on by

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

 
  • WillWU Profile Picture
    22,352 on at
    RE: How to read unread CSV files from network path value of which is stored in parameter table.

    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

  • Mea_ Profile Picture
    60,278 on at
    RE: How to read unread CSV files from network path value of which is stored in parameter table.

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans