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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How do I choose the path when downloading files D365 X ++

(1) ShareShare
ReportReport
Posted on by 140

Hi Everyone !

There are no problems with downloading files with x ++. But I want to download it to the desired folder by providing the user with the option.

Is it possible to technically do this?

If technically possible, can you help me with this and share a sample code?

Best Regards.

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,994 Most Valuable Professional on at

    .The web server simply returns a file; it doesn't control how files are downloaded by user's browser.

    The browser may save it to a folder defined in its configuration, or it may show a dialog where user chooses a location. It all happens in a browser on client; not in X++ on web server.

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    In the browser settings you can usually choose which folder to use for downloads, or whether tje browser should ask the folder before each download. That's how it can be handled. D365 can't impact how the browser handles this. 

  • satish.pentyala Profile Picture
    5 on at
    [quote user="Gokhan Cakir"]

    Hi Everyone !

    There are no problems with downloading files with x ++. But I want to download it to the desired folder by providing the user with the option.

    Is it possible to technically do this?

    If technically possible, can you help me with this and share a sample code?

    Best Regards.

    [/quote]

    Gokhan Cakir, Have you found the solution for this issue?

  • Martin Dráb Profile Picture
    237,994 Most Valuable Professional on at

    I believe that the question was answered: it's not possible. X++ running in on a web server can't control what a user does with the downloaded file on a local PC.

    You'll need to look for a different way to implement your business requirement. If you need a help with it, create a new thread and explain your requirements there.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans