Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Importing txt files with job queue to NAV once a day

(0) ShareShare
ReportReport
Posted on by

Hey guys,

I plan to create a report, which should import some text files to NAV.

Therefore I found a blog entry: https://robert-dynamicsnav.de/2016/07/dynamics-nav-datei-import-export-handhabung-1/

Here they are using a request page and call a function called "OpenFileDialog".

That one will not be necessay for my task, because there won't be a user, who could do some input.

So how can I change the procedure in that way, that the report looks on its own to known place after the text files?!

Later the job queue should automatically collect the files let's from C:

Thank you :)

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,656 on at
    RE: Importing txt files with job queue to NAV once a day

    You need to create a setup field with the directory location, and your code should loop through all the files in the directory and execute the import, after processing the import, you need to move those files to the archive folder.

    Check codeunit 419, it has functions with the use of DirectoryHelper you can find all the files in that directory.  (GetClientDirectoryFilesList, GetServerDirectoryFilesList)

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans