Hi there!
I browse for a file in Nav Client with:
SelectedFile := FileMgt.OpenFileDialog('NAV File Browser','*.xls','');
This works, but I need upload that file to the server, So I can Import the xls in a table. I have seen something like UPLOAD and UPLOADINTOSTREAM but I dont know how to use it.
Any idea? thanks.
*This post is locked for comments
FileMgt.MoveFile(ClientFileName,ServerFileName);
Check this link
In the File Management Codeunit use the function UploadFileSilent or UploadFile which will return the Server File name.
ServerFileName := FileManagement.UploadFileSilent(FullClientFilePath);
check Codeunit 419 functions.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156