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.
0
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
recFile.SETRANGE(Path, FeedPath);
recFile.SETRANGE("Is a file", TRUE);
recFile.SETFILTER(Name, '@s*');
recFile is a variable of
DataType-Record
SubType-File 2000000022
but when I access symbol menu, there are no fields named path, "Is a file", "Name"?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
You have specified an unknown variable.
Path
Define the variable under "Global C/AL symbols'.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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 Columns
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Name - recFile
DataType - Record
Subtype - File
SQL Server 2000
Navision 4.0 SP2
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
never thought of this because i choose from the table list.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.