I'm trying to get an XMLport to open a given folder and filetype.
No problem on the filetype, I simply changed the FileName property in the XMLport to CC*.csv which shows only the files I'm interested in.
But can't figure out a way to do the filename, I tried the old tricks that were used for Dataports but they didn't work.
Help! :?
0
Comments
TempFileName := currXMLport.FILENAME(pathname);
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Maybe it just isn't possible with XMLports to do any better than that though? :?
In addition, the XMLport won't function like a dataport if you schedule it using NAS.
In another words, you cannot automate XMLport to have it import .csv files..
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Create a Function with the following code. I call it from an Action, but it should work when called from the NAS. Shouldn't it?
In Codeunit 419 add this function