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

Using excel services in D365

(1) ShareShare
ReportReport
Posted on by 33
Hi everyone,
I'm new member .
I'm coding function for import data from excel but that throw exception "The name 'SysExcelApplication' does not denote a class, a table, or an extended data type."
This is my code and these red words is same exception above. 
private void importExelInternalDeliveryPrice()
{
    SysExcelApplication                 application;
    SysExcelWorkbooks                   workbooks;
    SysExcelWorkbook                    workbook;
    SysExcelWorksheets                  worksheets;
    SysExcelWorksheet                   worksheet;
    SysExcelCells                       cells;
    ....
}
I try update model to Application Platform package , but that not effect.
I'm using office 2016 , so i had tried add reference Microsoft.Office.Interop.Excel.dll but that is not OK.
Please help me.
Thanks a lot.
I have the same question (0)
  • David Danh Profile Picture
    33 on at
    Using excel services in D365
    Thank you very much.
  • Suggested answer
    Martin Dráb Profile Picture
    236,093 Most Valuable Professional on at
    Using excel services in D365
    Your approach worked in AX, but you need to do it differently in F&O. Utilize EPPlus library; OfficeOpenXml.ExcelPackage is the main class there. You can find examples on Internet, e.g. Import records from Excel using X++ code in D365FO.
     
    (Moved from Dynamics AX forum.)

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,019

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 840 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans