Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Download files from webclient

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, any how a way to download files from the webclient, but whit a specific name, for example, I download a file from the webclient whit the downloadfileto Function:

Original File: c:\NAV\Archivo.txt

File destination: c:\NAV\Download.txt

Is I use de WinClient the file is correct, the name for winClient is Download.txt in the path c:\NAV

but if I try download from the web client the download name is C_NAV_Download.txt in the path default of webbrowser for example c:\Downloads an the fullpath is c:\Downloads\C_NAV_Download.txt, how can I download from the webclient whit only the original name "Donwload.txt" to any path, or to an specific path, the goal if obtain a file whit the original name.

This are my buttons 

buttons.png

and this is my file

FILE.png

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Download files from webclient

    thanks for response Archer,

    yes this a addon to Mexico, but I test and develop on a stander version, i Solved the problem, if I like download from webclient I use the function SaveFileOnClient or the DownloadHandler function

    SaveFileOnClientATX(ServerFilePath : Text;ClientFileName : Text)
    FileManagement.DownloadHandler(
      ServerFilePath,
      '',
      '',
      FileManagement.GetToFilterText('',ClientFileName),
      ClientFileName);
    


    and for the winclient i Use the DownloadToFile function

    :)

  • keoma Profile Picture
    keoma 32,675 on at
    RE: Download files from webclient

    is that part of an addon or part of the MEX localisation?

    can you check if you get the same result in an unchanged cronus db?

    is this download function customized ?

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans