File Directory Listing
marina_ee
Member Posts: 30
I need to import files with dynamic filename, for example this naming convention: POrder[YYMMDD].txt, where the [YYMMDD] is dynamically named by a third party software according to their generation date.
I have setup the dataport according to the file structure, my intention is to have a codeunit to find the list of filenames, then call dataport with file name parameter to process them one by one. Is this possible?
Please help.
I have setup the dataport according to the file structure, my intention is to have a codeunit to find the list of filenames, then call dataport with file name parameter to process them one by one. Is this possible?
Please help.
0
Comments
-
0
-
does your code compile?0
-
no, it says:
You have specified an unknown variable.
Path
Define the variable under "Global C/AL symbols'.0 -
And which fields you can see in the symbol menu? Sometimes the fields are localized...0
-
Code
Description
Type
File Name
Table ID
Table Name
Export Filter Key
Export Filter Field 1
Export Filter Field Name 1
Export Filter Text 1
Export Filter Field 2
Export Filter Field Name 2
Export Filter Text 2
File Filter Key
File Filter Field 1
File Filter Field name 1
File Filter Text 1
File Filter Field 2
File Filter Field name 2
File Filter Text 2
File Columns0 -
-
yeah, this are the fields i saw when i click symbol menu. It is weird isnt it? I check my declaration many times, it is correct.
Name - recFile
DataType - Record
Subtype - File
SQL Server 2000
Navision 4.0 SP20 -
i tried it with another database from another client in the same server, it works. Path, Is a File, etc... do appear in symbol menu.0
-
It seems like there are two tables with name File. Try to enter the subtype through ID not through name...0
-
great, solved, now i can proceed, many thanks.
never thought of this because i choose from the table list.0 -
Looks like you can have the same table name for File and Navision doesn't complain about it being reserved?0
-
No, because it seem like Navision is testing just regular tables and not Virtual table names. Try it, it is allowed to create table with name File or e.g. Breakpoint etc.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

