web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

 
I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    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.

  • WillWU Profile Picture
    22,363 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans