web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Suggested answer
    dasdasd Profile Picture
    841 on at

    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

  • Verified answer
    Fedir Kryvyi Profile Picture
    1,026 on at

    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
    Sukrut Parab Profile Picture
    71,739 Moderator on at

    WinAPI is deprecated . Look at this post

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans