web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Upload a file from Nav client to a Directory in The Server

(0) ShareShare
ReportReport
Posted on by 179
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

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    60,993 Super User 2025 Season 2 on at

    check Codeunit 419 functions.

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at
  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    In the File Management Codeunit use the function UploadFileSilent or UploadFile which will return the Server File name.

    ServerFileName := FileManagement.UploadFileSilent(FullClientFilePath);

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at

    Check this link

    msdn.microsoft.com/.../dd355071(v=nav.80).aspx

  • Community Member Profile Picture
    on at

    FileMgt.MoveFile(ClientFileName,ServerFileName);

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans