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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

read data from excel stored on Local VM Machine using x++

(0) ShareShare
ReportReport
Posted on by 2

 protected void setupData()
    {
        SalesCreateOrder_SalesTable_CustAccount = "US-010";
      
    }

how read data from excel file on Virtual machine , to store values in above defined variable !!

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at
    RE: read data from excel stored on Local VM Machine using x++

    Hi sachin,

    Are you asking how to import data from excel?

    If yes, please refer to the below blogs and see if it helps.

    https://www.cloudfronts.com/blog/dynamics-ax/x-code-to-import-data-from-excel-to-d365-fno/

    https://www.d365snippets.com/2021/12/how-to-import-records-from-excel-using-xpp-code-in-d365fo.html

    Thanks,

    Girish S.

  • GirishS Profile Picture
    27,827 Moderator on at
    RE: read data from excel stored on Local VM Machine using x++

    Also, you cannot hard code the path of the VM machine where the file is present - You need to build the dialog - Get a file from the user and the process the file. Refer to the blog I posted above.

    Thanks,

    Girish S.

  • Anton Venter Profile Picture
    20,343 Super User 2025 Season 2 on at
    RE: read data from excel stored on Local VM Machine using x++

    Hi Sachin,

    What are the business requirements?

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: read data from excel stored on Local VM Machine using x++

    It is not possible to read the data from an excel file stored on a location in a virtual machine. The vm is hosted on azure. For this scenario, as Girish suggested, user have to upload the file and then you need to read that file and from that you should be able to save the data.

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
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans