Hi there,
Is it possible to read the txt file with codeunit from client machine. When I use the function to read the txt file it reads and works only if the txt file is on the server side. Does any one know the solution how to read the txt files from clients computers ...
On the client computer it will be the weight scale which after measuring leave .txt with the data I need. But this file is on the client machine. I though to upload the file on the server side and read from there, but I think that is not very good solution so if any one have idea or a solution what to try, please let me know
Best Regards
Answers
You need to upload the file server site or put the file on a fileshare which the nav service account have read acces to :-)
You can let the use pick the file, and upload it silent to the temp folder of NAV server site.
Using the above answer, check the File Management codeunit which has the functions to deal with file handling.
I've solved this using CopyClientFile function from File Management codeunit.
Thank you for your time.
Best Regards