Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

WinAPI::getOpenFilename in ax 7

(0) ShareShare
ReportReport
Posted on by

Hi,
  WinAPI::getOpenFileName is deprecated so what is alternative option in dynamics 365.
to get a image path in ax 7.

*This post is locked for comments

  • Suggested answer
    Sukrut Parab Profile Picture
    71,682 Moderator on at
    RE: WinAPI::getOpenFilename in ax 7

    WinAPI is deprecated . Look at this post

  • Verified answer
    Fedir Kryvyi Profile Picture
    1,026 on at
    RE: WinAPI::getOpenFilename in ax 7

    D365 is hosted in Azure and WinApi is depricated. Basically you need to treat operations with files as if you were working with a web app against server app.

    File upload/download is handled by new framework that can inside the browser:

    docs.microsoft.com/.../file-upload-control

    Here is an article about open file dialog and better examples for you to get the idea how to work with files in AX7

    community.dynamics.com/.../how-to-work-with-files-in-ax-7-part-1-upload-download-read-and-store-files-in-db

    After files are placed in Azure storage, you should be able to use DocumentManagement framework to get public URI. (Or you can work with docuRef docuValue table directly)

  • Suggested answer
    dasdasd Profile Picture
    841 on at
    RE: WinAPI::getOpenFilename in ax 7

    Hi,

    Please go throught the link which will be handy to read the data from excel using code in D365.

    dynamicsaxgyan.wordpress.com/.../read-from-excel-using-x-code-ax7-d365-for-operations

    Regards,

    Tabsheer

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,923 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,788 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans