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)

Download files from webclient

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • keoma Profile Picture
    32,729 on at

    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 ?

  • Community Member Profile Picture
    on at

    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

    :)

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