Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

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

Posted on by 175
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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Upload a file from Nav client to a Directory in The Server

    FileMgt.MoveFile(ClientFileName,ServerFileName);

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Upload a file from Nav client to a Directory in The Server

    Check this link

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

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Upload a file from Nav client to a Directory in The Server

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

    ServerFileName := FileManagement.UploadFileSilent(FullClientFilePath);

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,135 Super User 2024 Season 2 on at
    RE: Upload a file from Nav client to a Directory in The Server

    check Codeunit 419 functions.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans