Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

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

(0) ShareShare
ReportReport
Posted on by

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

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

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 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.

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

    Hi Sachin,

    What are the business requirements?

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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.

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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.

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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans