protected void setupData() { SalesCreateOrder_SalesTable_CustAccount = "US-010"; }
how read data from excel file on Virtual machine , to store values in above defined variable !!
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.
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.
Hi Sachin,
What are the business requirements?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 683 Most Valuable Professional
André Arnaud de Cal... 563 Super User 2025 Season 2
Sohaib Cheema 398 User Group Leader